Fix the error caused by emqttd:env/1

This commit is contained in:
Feng Lee 2017-02-16 18:59:53 +08:00
parent 5419266724
commit 726f829df5
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ start_client(WsPid, Req, ReplyChannel) ->
%%--------------------------------------------------------------------
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},
[{ws_client, {emqttd_ws_client, start_link, [Env]},
temporary, 5000, worker, [emqttd_ws_client]}]}}.