fix MFArgs

This commit is contained in:
Feng Lee 2015-09-29 11:27:48 +08:00
parent 86a1f7f7d4
commit f57affa2b3
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ open_listener({https, Port, Options}) ->
mochiweb:start_http(Port, Options, MFArgs).
open_listener(Protocol, Port, Options) ->
MFArgs = {emqttd_client, start_link, env(mqtt)},
MFArgs = {emqttd_client, start_link, [env(mqtt)]},
esockd:open(Protocol, Port, merge_sockopts(Options) , MFArgs).
merge_sockopts(Options) ->