Fix the error caused by emqttd:env/1
This commit is contained in:
parent
5419266724
commit
726f829df5
|
@ -39,7 +39,7 @@ start_client(WsPid, Req, ReplyChannel) ->
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
init([]) ->
|
init([]) ->
|
||||||
Env = lists:append(emqttd:env(client), emqttd:env(protocol)),
|
Env = lists:append(emqttd:env(client, []), emqttd:env(protocol, [])),
|
||||||
{ok, {{simple_one_for_one, 0, 1},
|
{ok, {{simple_one_for_one, 0, 1},
|
||||||
[{ws_client, {emqttd_ws_client, start_link, [Env]},
|
[{ws_client, {emqttd_ws_client, start_link, [Env]},
|
||||||
temporary, 5000, worker, [emqttd_ws_client]}]}}.
|
temporary, 5000, worker, [emqttd_ws_client]}]}}.
|
||||||
|
|
Loading…
Reference in New Issue