From ac3b248dfafcac877480a1cb97640da9e3e2db49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christopher=20Cot=C3=A9?= Date: Tue, 23 Nov 2021 13:26:29 -0500 Subject: [PATCH] trap exits and call terminate --- lib/client/handler.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client/handler.ex b/lib/client/handler.ex index 86237ce..0108de2 100644 --- a/lib/client/handler.ex +++ b/lib/client/handler.ex @@ -26,6 +26,7 @@ defmodule Wampex.Client.Handler do @impl true def init(opts) do + Process.flag(:trap_exit, true) {cn, opts} = Keyword.pop(opts, :client_name) state = do_init(opts) Client.add(cn, self()) -- 2.45.3