summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2017-01-24 22:25:44 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-01-24 22:25:44 (GMT)
commitebb24b7edd2b297f259eadfa4686e03c96504f1d (patch)
tree2f9934e501f366707a72994acb3bf354f9a97606 /Xamarin.Forms.Core
parent4b19d49aa228330af37cee8c4d4fe7097eaf608d (diff)
downloadxamarin-forms-ebb24b7edd2b297f259eadfa4686e03c96504f1d.zip
xamarin-forms-ebb24b7edd2b297f259eadfa4686e03c96504f1d.tar.gz
xamarin-forms-ebb24b7edd2b297f259eadfa4686e03c96504f1d.tar.bz2
Fix overeager subscription cleanup (#712)
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/MessagingCenter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/MessagingCenter.cs b/Xamarin.Forms.Core/MessagingCenter.cs
index 5e60046..b6a167d 100644
--- a/Xamarin.Forms.Core/MessagingCenter.cs
+++ b/Xamarin.Forms.Core/MessagingCenter.cs
@@ -205,7 +205,7 @@ namespace Xamarin.Forms
var key = new Sender(message, senderType, argType);
if (!s_subscriptions.ContainsKey(key))
return;
- s_subscriptions[key].RemoveAll(sub => !sub.CanBeRemoved() || sub.Subscriber.Target == subscriber);
+ s_subscriptions[key].RemoveAll(sub => sub.CanBeRemoved() || sub.Subscriber.Target == subscriber);
if (!s_subscriptions[key].Any())
s_subscriptions.Remove(key);
}