=rem #3527 Correction of match in reWatch
This commit is contained in:
parent
cdea2af973
commit
12a442f7d0
1 changed files with 5 additions and 3 deletions
|
|
@ -276,9 +276,11 @@ private[akka] class RemoteWatcher(
|
|||
*/
|
||||
def reWatch(address: Address): Unit =
|
||||
watching.foreach {
|
||||
case (wee: InternalActorRef, wer: InternalActorRef) if wee.path.address == address ⇒
|
||||
log.debug("Re-watch [{} -> {}]", wer, wee)
|
||||
wee.sendSystemMessage(Watch(wee, wer)) // ➡➡➡ NEVER SEND THE SAME SYSTEM MESSAGE OBJECT TO TWO ACTORS ⬅⬅⬅
|
||||
case (wee: InternalActorRef, wer: InternalActorRef) ⇒
|
||||
if (wee.path.address == address) {
|
||||
log.debug("Re-watch [{} -> {}]", wer, wee)
|
||||
wee.sendSystemMessage(Watch(wee, wer)) // ➡➡➡ NEVER SEND THE SAME SYSTEM MESSAGE OBJECT TO TWO ACTORS ⬅⬅⬅
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue