From: Christopher Coté Date: Wed, 24 Nov 2021 16:08:19 +0000 (-0500) Subject: handle terminate if handler hasn't fully registered yet X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=d2587cd9e4326e1ff2d78c663d2e127911d4446f;p=wampex_client.git handle terminate if handler hasn't fully registered yet --- 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