Consider changing the various guards to: is_pid(Client) orelse is_atom(Client) Also, I think taking advantage of http://www.erlang.org/doc/man/gen_server.html#start_link-4 is a better bet for your registration wrapper. gen_server contains code for handling the race condition of spawning the client when the register() call fails. -- Eugene Letuchy
↧