From 726f829df5d68d4be2559085e66fb466ec28a9d0 Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Thu, 16 Feb 2017 18:59:53 +0800 Subject: [PATCH] Fix the error caused by emqttd:env/1 --- src/emqttd_ws_client_sup.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emqttd_ws_client_sup.erl b/src/emqttd_ws_client_sup.erl index 60e1461b7..1375ac036 100644 --- a/src/emqttd_ws_client_sup.erl +++ b/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]}]}}.