diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-12-21 17:16:55 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-12-21 17:16:55 +0000 |
commit | 21e3410dd162f2b78a2507c254c9d516291c3444 (patch) | |
tree | f2ad9f97e97aea5686968c8bab35fa49d830306e /src/library | |
parent | f9a751e444ba479710bde403ab47d0b3937a8c12 (diff) | |
download | scala-21e3410dd162f2b78a2507c254c9d516291c3444.tar.gz scala-21e3410dd162f2b78a2507c254c9d516291c3444.tar.bz2 scala-21e3410dd162f2b78a2507c254c9d516291c3444.zip |
closed #2181. no review.
Diffstat (limited to 'src/library')
-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) ) } |