Skip to content

Commit

Permalink
Fix incorrect prefix unsubscribe (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Mar 27, 2024
1 parent 922c975 commit f7b6e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/server/PubSub/SubscribeBroker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public unsafe void PUnsubscribe(byte* key, ServerSessionBase session)
{
if (subscriptionDict.Item2.TryGetValue(sid, out var _session))
{
if (_session != session)
if (_session == session)
{
subscriptionDict.Item2.TryRemove(sid, out _);
break;
Expand Down

0 comments on commit f7b6e08

Please sign in to comment.