Skip to content

Commit

Permalink
Fix return type of net_kernel:handle_exit function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ieQu1 committed Dec 18, 2023
1 parent be6661c commit 4f3c39a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/kernel/src/net_kernel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,10 @@ generate_node_name(Host, State0) ->
%% -----------------------------------------------------------

handle_exit(Pid, Reason, State) ->
catch do_handle_exit(Pid, Reason, State).
try do_handle_exit(Pid, Reason, State)
catch
_:_ -> {noreply, State}
end.

do_handle_exit(Pid, Reason, State) ->
listen_exit(Pid, Reason, State),
Expand Down

0 comments on commit 4f3c39a

Please sign in to comment.