Skip to content

Commit

Permalink
Fix dead code in application_master
Browse files Browse the repository at this point in the history
  • Loading branch information
shionryuu committed Jul 21, 2019
1 parent 34b56e8 commit ffab8d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/kernel/src/application_master.erl
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ loop_it(Parent, Child, Mod, AppState) ->
NewAppState = prep_stop(Mod, AppState),
exit(Child, Reason),
receive
{'EXIT', Child, Reason2} ->
exit(Reason2)
{'EXIT', Child, _} -> ok
end,
catch Mod:stop(NewAppState);
catch Mod:stop(NewAppState),
exit(Reason);
{'EXIT', Child, Reason} -> % forward *all* exit reasons (inc. normal)
NewAppState = prep_stop(Mod, AppState),
catch Mod:stop(NewAppState),
Expand Down

0 comments on commit ffab8d2

Please sign in to comment.