From: Christopher Coté Date: Tue, 23 Nov 2021 18:26:29 +0000 (-0500) Subject: trap exits and call terminate X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=ac3b248dfafcac877480a1cb97640da9e3e2db49;p=wampex_client.git trap exits and call terminate --- 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())