From d2587cd9e4326e1ff2d78c663d2e127911d4446f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christopher=20Cot=C3=A9?= Date: Wed, 24 Nov 2021 11:08:19 -0500 Subject: [PATCH] handle terminate if handler hasn't fully registered yet --- lib/client/handler.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/client/handler.ex b/lib/client/handler.ex index e80e81a..b153f93 100644 --- a/lib/client/handler.ex +++ b/lib/client/handler.ex @@ -51,6 +51,9 @@ defmodule Wampex.Client.Handler do end) end + @impl true + def terminate(_reason, _state), do: :ok + def do_init(_opts), do: %{client_name: nil, registrations: nil} def handle_invocation_block({:ok, al, kw, state}, id) do -- 2.45.3