Switching to - instead of filterNot

This commit is contained in:
Viktor Klang 2012-03-16 16:29:11 +01:00
parent a4bd12ed22
commit 21751ce593

View file

@ -300,7 +300,7 @@ trait ActorClassification { this: ActorEventBus with ActorClassifier ⇒
case null false
case raw: TreeSet[_]
val v = raw.asInstanceOf[TreeSet[ActorRef]]
val removed = v.filterNot(monitor ==)
val removed = v - monitor
if (removed eq raw) false
else if (removed.isEmpty) {
if (!mappings.remove(monitored, v)) dissociate(monitored, monitor) else true