From f660b80672d5d16976111d89f9345fe7f1e3246e Mon Sep 17 00:00:00 2001 From: Matthew Sackman Date: Wed, 21 Mar 2012 13:23:25 +0000 Subject: And if an {intrinsic, Delay} child exits normally/shutdown, remember to really exit the supervisor. --- src/supervisor2.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/supervisor2.erl b/src/supervisor2.erl index fd5f0f30..774b7007 100644 --- a/src/supervisor2.erl +++ b/src/supervisor2.erl @@ -565,6 +565,8 @@ do_restart_delay({RestartType, Delay}, Reason, Child, State) -> del_child_and_maybe_shutdown(intrinsic, Child, State) -> {shutdown, state_del_child(Child, State)}; +del_child_and_maybe_shutdown({intrinsic, _Delay}, Child, State) -> + {shutdown, state_del_child(Child, State)}; del_child_and_maybe_shutdown(_, Child, State) -> {ok, state_del_child(Child, State)}. -- cgit v1.2.1