move unneeded test outside of if statement
This commit is contained in:
parent
445c2e6476
commit
5d290dc063
1 changed files with 2 additions and 1 deletions
|
|
@ -81,7 +81,8 @@ trait MessageDispatcher extends Logging {
|
||||||
futures add invocation.uuid
|
futures add invocation.uuid
|
||||||
if (active.isOff) { active.switchOn { start } }
|
if (active.isOff) { active.switchOn { start } }
|
||||||
invocation.future.onComplete { f =>
|
invocation.future.onComplete { f =>
|
||||||
if ((futures remove invocation.uuid) && futures.isEmpty && uuids.isEmpty) {
|
futures remove invocation.uuid
|
||||||
|
if (futures.isEmpty && uuids.isEmpty) {
|
||||||
shutdownSchedule match {
|
shutdownSchedule match {
|
||||||
case UNSCHEDULED =>
|
case UNSCHEDULED =>
|
||||||
shutdownSchedule = SCHEDULED
|
shutdownSchedule = SCHEDULED
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue