mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +00:00
changed logic in aroundPostStop in regards to onSuccess
This commit is contained in:
parent
33403c24dd
commit
14213affe0
|
|
@ -32,7 +32,7 @@ class TaskResolver() extends Actor {
|
|||
*/
|
||||
timeoutCleanup.cancel()
|
||||
TimeoutCleanup()
|
||||
OnSuccess()
|
||||
tasks.filter(entry => entry.task.isComplete == Task.Resolution.Success).foreach(entry => OnSuccess(entry.task) )
|
||||
val ex : Throwable = new Exception(s"a task is being stopped")
|
||||
tasks.foreach(entry => {
|
||||
OnFailure(entry.task, ex)
|
||||
|
|
|
|||
Loading…
Reference in a new issue