diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-09 16:01:58 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-09 16:01:58 +0100 |
| commit | cbddaa7c55703346ccb49512c2d334dfb4838990 (patch) | |
| tree | 54d8671784a165529b079f00dd7b78784b6e79d3 /src | |
| parent | fa15cf2b931a7d67dad5dd1c25f4cf4ed3eb7e19 (diff) | |
| download | rabbitmq-server-git-cbddaa7c55703346ccb49512c2d334dfb4838990.tar.gz | |
use state_del_child instead of remove_child
remove_child removes child *specs* which is not what we want here
Diffstat (limited to 'src')
| -rw-r--r-- | src/supervisor2.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl index 902ad8d0c3..3875997e72 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); |
