fix issue#151
This commit is contained in:
parent
6f2cdca408
commit
0b93391050
|
@ -332,10 +332,16 @@ handle_cast({unsubscribe, TopicTable}, Session = #session{client_id = Client
|
|||
end, Subscriptions, TopicTable),
|
||||
hibernate(Session#session{subscriptions = Subscriptions1});
|
||||
|
||||
handle_cast({destroy, ClientId}, Session = #session{client_id = ClientId}) ->
|
||||
handle_cast({destroy, ClientId}, Session = #session{client_id = ClientId, client_pid = undefined}) ->
|
||||
?LOG(warning, "destroyed", [], Session),
|
||||
shutdown(destroy, Session);
|
||||
|
||||
%%
|
||||
handle_cast({destroy, ClientId}, Session = #session{client_id = ClientId, client_pid = OldClientPid}) ->
|
||||
?LOG(warning, "kickedout~p", [OldClientPid], Session),
|
||||
shutdown(conflict, Session);
|
||||
|
||||
|
||||
handle_cast({resume, ClientId, ClientPid}, Session = #session{client_id = ClientId,
|
||||
client_pid = OldClientPid,
|
||||
clean_sess = CleanSess,
|
||||
|
|
Loading…
Reference in New Issue