summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-07-14 16:54:10 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-07-14 16:54:10 +0100
commitc991045c5e01a1d921b1a2ddfe3f1c5f637125ad (patch)
tree6d7a772b3b1d54a64b393d57d635ea2874774670 /src
parent920e2c27e53984e8af880f69dc6737974c9e875a (diff)
downloadrabbitmq-server-git-c991045c5e01a1d921b1a2ddfe3f1c5f637125ad.tar.gz
Reset restarts before we go round again, otherwise if MaxT is large we will keep looping until it clears.
Diffstat (limited to 'src')
-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) ->