Fix the 'spawn_opt' options

This commit is contained in:
Feng Lee 2017-02-23 17:25:44 +08:00
parent 73847b96fc
commit e972103f74
1 changed files with 1 additions and 2 deletions

View File

@ -66,8 +66,7 @@
[esockd_net:format(State#client_state.peername) | Args])).
start_link(Conn, Env) ->
{ok, proc_lib:spawn_opt(?MODULE, init, [[Conn, Env]],
[{spawn_opt, [link | ?FULLSWEEP_OPTS]}])}.
{ok, proc_lib:spawn_opt(?MODULE, init, [[Conn, Env]], [link | ?FULLSWEEP_OPTS])}.
info(CPid) ->
gen_server2:call(CPid, info).