kickout
This commit is contained in:
parent
2181bd7850
commit
d62593a9c6
|
@ -336,12 +336,10 @@ handle_cast({destroy, ClientId}, Session = #session{client_id = ClientId, client
|
||||||
?LOG(warning, "destroyed", [], Session),
|
?LOG(warning, "destroyed", [], Session),
|
||||||
shutdown(destroy, Session);
|
shutdown(destroy, Session);
|
||||||
|
|
||||||
%%
|
|
||||||
handle_cast({destroy, ClientId}, Session = #session{client_id = ClientId, client_pid = OldClientPid}) ->
|
handle_cast({destroy, ClientId}, Session = #session{client_id = ClientId, client_pid = OldClientPid}) ->
|
||||||
?LOG(warning, "kicked out~p", [OldClientPid], Session),
|
?LOG(warning, "kickout ~p", [OldClientPid], Session),
|
||||||
shutdown(conflict, Session);
|
shutdown(conflict, Session);
|
||||||
|
|
||||||
|
|
||||||
handle_cast({resume, ClientId, ClientPid}, Session = #session{client_id = ClientId,
|
handle_cast({resume, ClientId, ClientPid}, Session = #session{client_id = ClientId,
|
||||||
client_pid = OldClientPid,
|
client_pid = OldClientPid,
|
||||||
clean_sess = CleanSess,
|
clean_sess = CleanSess,
|
||||||
|
|
Loading…
Reference in New Issue