Skip to content

Commit

Permalink
Fix shutdown reason in case of connect error (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
fholzhauser authored and HJianBo committed Jul 22, 2020
1 parent 3132901 commit f679d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emqtt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ initialized({call, From}, {connect, ConnMod}, State = #state{sock_opts = SockOpt
{stop_and_reply, Reason, [{reply, From, Error}]}
end;
Error = {error, Reason} ->
{stop_and_reply, Reason, [{reply, From, Error}]}
{stop_and_reply, {shutdown, Reason}, [{reply, From, Error}]}
end;

initialized(EventType, EventContent, State) ->
Expand Down

0 comments on commit f679d6e

Please sign in to comment.