Quellcode durchsuchen

Fix the 'spawn_opt' options

Feng Lee vor 9 Jahren
Ursprung
Commit
e972103f74
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      src/emqttd_client.erl

+ 1 - 2
src/emqttd_client.erl

@@ -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).