From 0c14484b0a3237cb06f8ec676462b797fdac3b9c Mon Sep 17 00:00:00 2001 From: GilbertWong Date: Thu, 18 Jul 2019 19:51:06 +0800 Subject: [PATCH] Disable the useless error log info --- src/emqx_session.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/emqx_session.erl b/src/emqx_session.erl index c5ea950ce..026c10336 100644 --- a/src/emqx_session.erl +++ b/src/emqx_session.erl @@ -461,9 +461,6 @@ handle_call({pubrel, PacketId, _ReasonCode}, _From, State = #state{awaiting_rel handle_call(close, _From, State) -> {stop, normal, ok, State}; -handle_call({close, Reason}, _From, State) -> - {stop, Reason, ok, State}; - handle_call(Req, _From, State) -> ?LOG(error, "Unexpected call: ~p", [Req]), {reply, ignored, State}. @@ -633,7 +630,7 @@ handle_info({'EXIT', ConnPid, Reason}, State = #state{will_msg = WillMsg, expiry _ -> send_willmsg(WillMsg) end, - {stop, Reason, State#state{will_msg = undefined, conn_pid = undefined}}; + shutdown(Reason, State#state{will_msg = undefined, conn_pid = undefined}); handle_info({'EXIT', ConnPid, Reason}, State = #state{conn_pid = ConnPid}) -> State1 = case Reason of