From 651d69fb9804a8563718a12d36441ac6d266328f Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Tue, 30 Jul 2019 23:17:10 +0300 Subject: [PATCH] Also catch 'shutdown' exit reason --- src/mod_stream_mgmt.erl | 2 ++ 1 file changed, 2 insertions(+) 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, _} -> -- 2.40.0