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:
parent
35be7d2718
commit
22e43ebd8a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user