mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-12 17:28:56 +01:00
Start timer to IDLE_COOLDOWN before idleEventPromise completes. (#649)
This commit is contained in:
parent
8faf6b9f52
commit
9947c3bcfb
@ -1107,7 +1107,7 @@
|
||||
}
|
||||
// Calling idle could result in task being added to queue.
|
||||
if (task_queue.size <= 0 && concurrent_generators.size <= 0) {
|
||||
return idleEventPromise.then(() => asyncDelay(IDLE_COOLDOWN))
|
||||
return asyncDelay(IDLE_COOLDOWN).then(() => idleEventPromise)
|
||||
}
|
||||
}
|
||||
if (task_queue.size < serverCapacity) {
|
||||
|
Loading…
Reference in New Issue
Block a user