Skip to content

Commit

Permalink
Callback leak fix (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
vguerci authored Sep 27, 2017
1 parent 8fd77fd commit 9525c71
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,9 @@ case class TimeSeriesScheduler(logger: Logger) extends Scheduler[TimeSeries] wit
(execution.job, execution.context, result)
}

Future.firstCompletedOf(
utils.Timeout(ScalaDuration.create(1, "s")) :: newRunning.map(_._3).toList)
.andThen {
case _ => mainLoop(newRunning ++ stillRunning)
}
utils.Timeout(ScalaDuration.create(1, "s")).andThen {
case _ => mainLoop(newRunning)
}
}

mainLoop(Set.empty)
Expand Down

0 comments on commit 9525c71

Please sign in to comment.