mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue