Switching to - instead of filterNot
This commit is contained in:
parent
a4bd12ed22
commit
21751ce593
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue