From: Evgeny Khramtsov Date: Tue, 30 Jul 2019 20:17:10 +0000 (+0300) Subject: Also catch 'shutdown' exit reason X-Git-Tag: 19.08~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=651d69fb9804a8563718a12d36441ac6d266328f;p=ejabberd Also catch 'shutdown' exit reason --- diff --git a/src/mod_stream_mgmt.erl b/src/mod_stream_mgmt.erl index 4fd778899..ced5424a8 100644 --- a/src/mod_stream_mgmt.erl +++ b/src/mod_stream_mgmt.erl @@ -664,6 +664,8 @@ inherit_session_state(#{user := U, server := S, {error, session_is_dead}; exit:{normal, _} -> {error, session_has_exited}; + exit:{shutdown, _} -> + {error, session_has_exited}; exit:{killed, _} -> {error, session_was_killed}; exit:{timeout, _} ->