25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

mod_stream_mgmt: Cope with exit during resumption

Don't crash if the old process exits while it is queried for the session
state.
This commit is contained in:
Holger Weiss 2018-02-24 21:50:54 +01:00
parent 35be7d2718
commit 22e43ebd8a

View File

@ -661,6 +661,8 @@ inherit_session_state(#{user := U, server := S,
{error, Msg}
catch exit:{noproc, _} ->
{error, <<"Previous session PID is dead">>};
exit:{normal, _} ->
{error, <<"Previous session PID has exited">>};
exit:{timeout, _} ->
{error, <<"Session state copying timed out">>}
end