Feng Lee 10 lat temu
rodzic
commit
e4d45c4105
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/emqttd_protocol.erl

+ 1 - 0
src/emqttd_protocol.erl

@@ -308,6 +308,7 @@ shutdown(Error, #proto_state{client_id = undefined}) ->
     lager:info("Protocol shutdown ~p", [Error]),
     lager:info("Protocol shutdown ~p", [Error]),
     ignore;
     ignore;
 
 
+%% TODO: ClientId??
 shutdown(Error, #proto_state{peername = Peername, client_id = ClientId, will_msg = WillMsg}) ->
 shutdown(Error, #proto_state{peername = Peername, client_id = ClientId, will_msg = WillMsg}) ->
 	lager:info([{client, ClientId}], "Client ~s@~s: shutdown ~p",
 	lager:info([{client, ClientId}], "Client ~s@~s: shutdown ~p",
                    [ClientId, emqttd_net:format(Peername), Error]),
                    [ClientId, emqttd_net:format(Peername), Error]),