fix CallingThreadMailbox.numberOfMessages

This commit is contained in:
Roland 2012-04-03 16:24:50 +02:00
parent e9a6c16bdc
commit ca9d6b369d
2 changed files with 18 additions and 1 deletions

View file

@ -294,7 +294,7 @@ class CallingThreadMailbox(_receiver: ActorCell, val mailboxType: MailboxType) e
override def enqueue(receiver: ActorRef, msg: Envelope): Unit = throw new UnsupportedOperationException("CallingThreadMailbox cannot enqueue normally")
override def dequeue(): Envelope = throw new UnsupportedOperationException("CallingThreadMailbox cannot dequeue normally")
override def hasMessages: Boolean = q.get.q.hasMessages
override def numberOfMessages: Int = -1
override def numberOfMessages: Int = 0
def queue = q.get