summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2013-03-08 20:23:10 +0000
committerTim Watson <tim@rabbitmq.com>2013-03-08 20:23:10 +0000
commitfe1f803340caa83e9737399d9bb0148c9d8a9d10 (patch)
tree176cccc2c230e7aae9ae53de456d1ffbad953d4e
parentad6585ac8fe190ec01fc76bbee76c7a845b016d6 (diff)
downloadrabbitmq-server-fe1f803340caa83e9737399d9bb0148c9d8a9d10.tar.gz
Translate return from do_restart properly
-rw-r--r--src/supervisor2.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl
index aba40626..ff519acd 100644
--- a/src/supervisor2.erl
+++ b/src/supervisor2.erl
@@ -706,8 +706,8 @@ handle_info(Msg, State) ->
delayed_restart(RestartType, Reason, Child, State) ->
case do_restart(RestartType, Reason, Child, State) of
- {ok, NState} -> {noreply, NState};
- Other -> Other
+ {ok, NState} -> {noreply, NState};
+ {shutdown, State2} -> {stop, shutdown, State2}
end.
%%