diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2010-11-06 17:24:18 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-11-06 17:24:18 +0000 |
| commit | 52d1e388958073f1ff95279b4c81fb30e9c8d08b (patch) | |
| tree | 326db3198e6c9f293c02fd47952f925e5de075a9 | |
| parent | d908f6b9e1a390783eea799cd69c304c32e17fb5 (diff) | |
| download | rabbitmq-server-git-52d1e388958073f1ff95279b4c81fb30e9c8d08b.tar.gz | |
appease dialyzer
The code was perfectly ok before but dialyzer didn't think so.
| -rw-r--r-- | src/supervisor2.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl index 93adfcb1b5..46bab31ddc 100644 --- a/src/supervisor2.erl +++ b/src/supervisor2.erl @@ -357,8 +357,7 @@ handle_cast({delayed_restart, {RestartType, Reason, Child}}, State) when ?is_simple(State) -> {ok, NState} = do_restart(RestartType, Reason, Child, State), {noreply, NState}; -handle_cast({delayed_restart, {RestartType, Reason, Child}}, State) - when not (?is_simple(State)) -> +handle_cast({delayed_restart, {RestartType, Reason, Child}}, State) -> case get_child(Child#child.name, State) of {value, Child} -> {ok, NState} = do_restart(RestartType, Reason, Child, State), |
