mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
mod_stream_mgmt: Clean up on timed out resumption
During resumption, make sure the old process and the corresponding session entry are disposed also in the case where the call that queries the old process times out.
This commit is contained in:
parent
d9bf5a6865
commit
bc808ffcde
@ -664,6 +664,8 @@ inherit_session_state(#{user := U, server := S,
|
||||
exit:{normal, _} ->
|
||||
{error, <<"Previous session PID has exited">>};
|
||||
exit:{timeout, _} ->
|
||||
ejabberd_sm:close_session(OldSID, U, S, R),
|
||||
ejabberd_c2s:stop(OldPID),
|
||||
{error, <<"Session state copying timed out">>}
|
||||
end
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user