summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-08-09 16:01:58 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-08-09 16:01:58 +0100
commit97b2cedc18207b655a0db0b1546617634c272ce5 (patch)
tree54d8671784a165529b079f00dd7b78784b6e79d3
parent327844e52acfc7dab360f30070b81793bc065491 (diff)
downloadrabbitmq-server-97b2cedc18207b655a0db0b1546617634c272ce5.tar.gz
use state_del_child instead of remove_child
remove_child removes child *specs* which is not what we want here
-rw-r--r--src/supervisor2.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl
index 902ad8d0..3875997e 100644
--- a/src/supervisor2.erl
+++ b/src/supervisor2.erl
@@ -540,10 +540,10 @@ do_restart({RestartType, Delay}, Reason, Child, State) ->
{ok, NState}
end;
do_restart(intrinsic, normal, Child, State) ->
- {shutdown, remove_child(Child, State)};
+ {shutdown, state_del_child(Child, State)};
do_restart(intrinsic, Reason, Child, State) ->
report_error(child_terminated, Reason, Child, State#state.name),
- {shutdown, remove_child(Child, State)};
+ {shutdown, state_del_child(Child, State)};
do_restart(permanent, Reason, Child, State) ->
report_error(child_terminated, Reason, Child, State#state.name),
restart(Child, State);