Просмотр исходного кода

Fix the error caused by emqttd:env/1

Feng Lee 9 лет назад
Родитель
Сommit
726f829df5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/emqttd_ws_client_sup.erl

+ 1 - 1
src/emqttd_ws_client_sup.erl

@@ -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]}]}}.