Skip to content

Commit 66f7f1e

Browse files
fix Replicator.ReceiveUnsubscribe boolean logic (#7806)
close #7804
1 parent dc1e185 commit 66f7f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contrib/cluster/Akka.DistributedData/Replicator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ private void ReceiveUnsubscribe(IKey key, IActorRef subscriber)
12401240
if (!HasSubscriber(subscriber))
12411241
Context.Unwatch(subscriber);
12421242

1243-
if (!_subscribers.ContainsKey(key.Id) || !_newSubscribers.ContainsKey(key.Id))
1243+
if (!_subscribers.ContainsKey(key.Id) && !_newSubscribers.ContainsKey(key.Id))
12441244
_subscriptionKeys = _subscriptionKeys.Remove(key.Id);
12451245
}
12461246

0 commit comments

Comments
 (0)