From 890b429faded2058cee42441f52d9a7e8061d321 Mon Sep 17 00:00:00 2001 From: Ery Lee Date: Wed, 14 Jan 2015 18:25:59 +0800 Subject: [PATCH] shutdown, keepalive_timeout --- apps/emqtt/src/emqtt_client.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqtt/src/emqtt_client.erl b/apps/emqtt/src/emqtt_client.erl index 4263242f6..01a728b8d 100644 --- a/apps/emqtt/src/emqtt_client.erl +++ b/apps/emqtt/src/emqtt_client.erl @@ -126,7 +126,7 @@ handle_info({keepalive, timeout}, State = #state { keepalive = KeepAlive }) -> case emqtt_keepalive:resume(KeepAlive) of timeout -> lager:info("Client ~s: Keepalive Timeout!", [State#state.peer_name]), - {stop, normal, State}; + stop({shutdown, keepalive_timeout}, State); {resumed, KeepAlive1} -> lager:info("Client ~s: Keepalive Resumed", [State#state.peer_name]), {noreply, State#state{ keepalive = KeepAlive1 }}