diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/supervisor2.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl index aba4062614..ff519acdd4 100644 --- a/src/supervisor2.erl +++ b/src/supervisor2.erl @@ -706,8 +706,8 @@ handle_info(Msg, State) -> delayed_restart(RestartType, Reason, Child, State) -> case do_restart(RestartType, Reason, Child, State) of - {ok, NState} -> {noreply, NState}; - Other -> Other + {ok, NState} -> {noreply, NState}; + {shutdown, State2} -> {stop, shutdown, State2} end. %% |
