]> Entropealabs - wampex_router.git/commitdiff
remove registration don't replace
authorChristopher Coté <ccote@cohesionib.com>
Fri, 4 Dec 2020 04:23:13 +0000 (22:23 -0600)
committerChristopher Coté <ccote@cohesionib.com>
Fri, 4 Dec 2020 04:23:13 +0000 (22:23 -0600)
lib/router/realms/session.ex

index 62c466f27f329f5fcc30bf5949a61d1643613cab..81784a8fe2b51ca6f31cdddcc33996205f220b87 100644 (file)
@@ -12,7 +12,7 @@ defmodule Wampex.Router.Realms.Session do
 
   def unregister(db, realm, {id, _from} = value, regs) do
     {_id, proc} = reg = get_registration(id, regs)
-    ClusterKV.update(db, realm, proc, value, :replace)
+    ClusterKV.update(db, realm, proc, value, :remove)
     List.delete(regs, reg)
   end