use forward in stead of send when stealing work from another actor
This commit is contained in:
parent
067cc73a8f
commit
62cdb9fc23
1 changed files with 1 additions and 3 deletions
|
|
@ -168,9 +168,7 @@ class ExecutorBasedEventDrivenWorkStealingDispatcher(_name: String) extends Mess
|
|||
private def donateMessage(receiver: Actor, thief: Actor): Option[MessageInvocation] = {
|
||||
val donated = receiver._mailbox.pollLast
|
||||
if (donated != null) {
|
||||
//TODO: forward seems to fail from time to time ?!
|
||||
//thief.forward(donated.message)(Some(donated.receiver))
|
||||
thief.send(donated.message)
|
||||
thief.forward(donated.message)(Some(donated.receiver))
|
||||
return Some(donated)
|
||||
} else return None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue