summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/supervisor2.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl
index db4c388a90..90fb042379 100644
--- a/src/supervisor2.erl
+++ b/src/supervisor2.erl
@@ -917,7 +917,7 @@ do_restart_delay({RestartType, Delay}, Reason, Child, State) ->
_TRef = erlang:send_after(trunc(Delay*1000), self(),
{delayed_restart,
{{RestartType, Delay}, Reason, Child}}),
- {ok, state_del_child(Child, State)}
+ {ok, state_del_child(Child, State#state{restarts = []})}
end.
restart(Child, State) ->