diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/collection/mutable/Publisher.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/Publisher.scala b/src/library/scala/collection/mutable/Publisher.scala index da3e0c8238..4f675eff9f 100644 --- a/src/library/scala/collection/mutable/Publisher.scala +++ b/src/library/scala/collection/mutable/Publisher.scala @@ -48,7 +48,8 @@ trait Publisher[Evt] { protected def publish(event: Evt) { filters.keysIterator.foreach(sub => - if (filters.entryExists(sub, p => p(event))) + if (!suspended.contains(sub) && + filters.entryExists(sub, p => p(event))) sub.notify(self, event) ) } |