mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 15:34:42 +00:00
changed logic in aroundPostStop in regards to onSuccess
This commit is contained in:
parent
33403c24dd
commit
14213affe0
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ class TaskResolver() extends Actor {
|
||||||
*/
|
*/
|
||||||
timeoutCleanup.cancel()
|
timeoutCleanup.cancel()
|
||||||
TimeoutCleanup()
|
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")
|
val ex : Throwable = new Exception(s"a task is being stopped")
|
||||||
tasks.foreach(entry => {
|
tasks.foreach(entry => {
|
||||||
OnFailure(entry.task, ex)
|
OnFailure(entry.task, ex)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue