Merge branch 'develop' into emq20

This commit is contained in:
Feng Lee 2017-03-29 17:39:36 +08:00
commit ca8e7e6423
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ handle_info({'EXIT', WsPid, Reason}, State = #wsclient_state{ws_pid = WsPid}) ->
%% The session process exited unexpectedly. %% The session process exited unexpectedly.
handle_info({'EXIT', Pid, Reason}, State = #wsclient_state{proto_state = ProtoState}) -> handle_info({'EXIT', Pid, Reason}, State = #wsclient_state{proto_state = ProtoState}) ->
case emqttd_protocol:session(ProtoState) of case emqttd_protocol:session(ProtoState) of
Pid -> shutdown(Reason, State); Pid -> stop(Reason, State);
_ -> ?WSLOG(error, "Unexpected EXIT: ~p, Reason: ~p", [Pid, Reason], State), _ -> ?WSLOG(error, "Unexpected EXIT: ~p, Reason: ~p", [Pid, Reason], State),
{noreply, State, hibernate} {noreply, State, hibernate}
end; end;