Skip to content

Commit

Permalink
Fixed FakeActor bug: didn't call filterMessage in internalSendNonSusp…
Browse files Browse the repository at this point in the history
…endable
  • Loading branch information
pron committed Jan 21, 2014
1 parent 3519d2b commit e382589
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ protected void internalSend(Object message) throws SuspendExecution {

@Override
protected void internalSendNonSuspendable(Object message) {
if (!mailbox().trySend(message))
record(1, "ActorRef", "internalSendNonSuspendable", "Sending %s -> %s", message, this);
Message msg = filterMessage(message);
if (msg == null)
return;
if (!mailbox().trySend(msg))
throw new QueueCapacityExceededException();
}

Expand Down

0 comments on commit e382589

Please sign in to comment.