make sure lock is aquired when accessing shutdownSchedule
This commit is contained in:
parent
485013a353
commit
c61f1a42dc
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ trait MessageDispatcher {
|
|||
}
|
||||
|
||||
private val futureCleanup: () => Unit = { () =>
|
||||
if (futures.decrementAndGet() == 0 && uuids.isEmpty) {
|
||||
if (futures.decrementAndGet() == 0) guard withGuard { if (uuids.isEmpty) {
|
||||
shutdownSchedule match {
|
||||
case UNSCHEDULED =>
|
||||
shutdownSchedule = SCHEDULED
|
||||
|
|
@ -104,7 +104,7 @@ trait MessageDispatcher {
|
|||
shutdownSchedule = RESCHEDULED
|
||||
case RESCHEDULED => //Already marked for reschedule
|
||||
}
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
||||
private[akka] def register(actorRef: ActorRef) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue