summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_misc.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 89648f4f1e..527de0f64a 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -210,7 +210,8 @@ with_exit_handler(Handler, Thunk) ->
try
Thunk()
catch
- exit:{R, _} when R =:= noproc; R =:= normal -> Handler()
+ exit:{R, _} when R =:= noproc; R =:= normal; R =:= shutdown ->
+ Handler()
end.
with_user(Username, Thunk) ->