From 4f3c39aee6dca9e1f73bed42ce05a89954f07d83 Mon Sep 17 00:00:00 2001 From: ieQu1 <99872536+ieQu1@users.noreply.github.com> Date: Mon, 18 Dec 2023 16:04:39 +0100 Subject: [PATCH] Fix return type of net_kernel:handle_exit function. --- lib/kernel/src/net_kernel.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl index a3d983d310c0..fa1c60192ede 100644 --- a/lib/kernel/src/net_kernel.erl +++ b/lib/kernel/src/net_kernel.erl @@ -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),