This commit is contained in:
Feng Lee 2015-03-09 23:02:36 +08:00
parent 9a05181844
commit 81494e0aa0
1 changed files with 10 additions and 11 deletions

View File

@ -306,10 +306,9 @@ handle_cast({resume, ClientId, ClientPid}, State = #session_state{
ClientPid ! {dispatch, {self(), Msg}}
end, emqtt_queue:all(Queue)),
NewState = State#session_state{client_pid = ClientPid,
{noreply, State#session_state{client_pid = ClientPid,
msg_queue = emqtt_queue:clear(Queue),
expire_timer = undefined},
{noreply, NewState, hibernate};
expire_timer = undefined}, hibernate};
handle_cast({publish, ?QOS_2, Message}, State) ->
NewState = publish(State, {?QOS_2, Message}),