]> granicus.if.org Git - ejabberd/commitdiff
Also catch 'shutdown' exit reason
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Tue, 30 Jul 2019 20:17:10 +0000 (23:17 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Tue, 30 Jul 2019 20:17:10 +0000 (23:17 +0300)
src/mod_stream_mgmt.erl

index 4fd7788995a4cd4c4274d4d7fd01218772506ff7..ced5424a81337e0de28972fc3aba9d9bc232feb9 100644 (file)
@@ -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, _} ->