small change

This commit is contained in:
FateJH 2018-05-21 11:12:13 -04:00
parent 552206974e
commit 185da88db5

View file

@ -109,7 +109,7 @@ class DeconstructionActor extends Actor {
} }
taskResolver ! DeconstructionTask(vehicle, zone) taskResolver ! DeconstructionTask(vehicle, zone)
}) })
if(vehiclesRemain.nonEmpty) { if(vehiclesRemain.nonEmpty) {
val short_timeout : FiniteDuration = math.max(1, DeconstructionActor.timeout_time - (now - vehiclesRemain.head.time)) nanoseconds val short_timeout : FiniteDuration = math.max(1, DeconstructionActor.timeout_time - (now - vehiclesRemain.head.time)) nanoseconds
import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.ExecutionContext.Implicits.global