diff options
| -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); |
