Skip to content

Commit bcf82b2

Browse files
author
Matthew Sackman
committed
And if an {intrinsic, Delay} child exits normally/shutdown, remember to really exit the supervisor.
1 parent 5b6410a commit bcf82b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/supervisor2.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,8 @@ do_restart_delay({RestartType, Delay}, Reason, Child, State) ->
565565

566566
del_child_and_maybe_shutdown(intrinsic, Child, State) ->
567567
{shutdown, state_del_child(Child, State)};
568+
del_child_and_maybe_shutdown({intrinsic, _Delay}, Child, State) ->
569+
{shutdown, state_del_child(Child, State)};
568570
del_child_and_maybe_shutdown(_, Child, State) ->
569571
{ok, state_del_child(Child, State)}.
570572

0 commit comments

Comments
 (0)