]> Entropealabs - wampex_client.git/commitdiff
handle terminate if handler hasn't fully registered yet
authorChristopher Coté <chris@entropealabs.com>
Wed, 24 Nov 2021 16:08:19 +0000 (11:08 -0500)
committerChristopher Coté <chris@entropealabs.com>
Wed, 24 Nov 2021 16:08:19 +0000 (11:08 -0500)
lib/client/handler.ex

index e80e81a9986258e7b2902d700e124550cf2ffeb9..b153f9327015972262f9dec38518bf47da52c2de 100644 (file)
@@ -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