diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-07-14 16:54:10 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-07-14 16:54:10 +0100 |
| commit | c991045c5e01a1d921b1a2ddfe3f1c5f637125ad (patch) | |
| tree | 6d7a772b3b1d54a64b393d57d635ea2874774670 /src | |
| parent | 920e2c27e53984e8af880f69dc6737974c9e875a (diff) | |
| download | rabbitmq-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.erl | 2 |
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) -> |
