From: Christopher Date: Sun, 5 Apr 2020 17:13:46 +0000 (-0500) Subject: properly transition from unregister X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=9578ac3cc27f9f72a9bc2dba83a0819f2d59a7d6;p=wampex_router.git properly transition from unregister --- diff --git a/lib/router/session.ex b/lib/router/session.ex index 42fb4ad..97555fc 100644 --- a/lib/router/session.ex +++ b/lib/router/session.ex @@ -378,7 +378,7 @@ defmodule Wampex.Router.Session do regs = RealmSession.unregister(db, realm, {registration_id, {self(), Node.self()}}, regs) send_to_peer(Dealer.unregistered(%Unregistered{request_id: request_id}), tt, t) - {:ok, %SL{sl | data: %Sess{data | registrations: regs}}} + {:ok, %SL{sl | data: %Sess{data | registrations: regs}}, [{:next_event, :internal, :transition}]} end @impl true