Change timeouts again
This commit is contained in:
parent
1646958449
commit
ed0e51114c
@ -280,8 +280,8 @@ class Resizer {
|
|||||||
}
|
}
|
||||||
// fire first few rechecks in quick succession, but start increasing timeout
|
// fire first few rechecks in quick succession, but start increasing timeout
|
||||||
// later down the line.
|
// later down the line.
|
||||||
if (iteration > 3) {
|
if (iteration > 0 && iteration % 0 == 0) {
|
||||||
timeout = Math.max(2 * timeout, 1000);
|
timeout = Math.min(2 * timeout, 1000);
|
||||||
}
|
}
|
||||||
this.logger.log('info', 'debug', `[Resizer::setAr] <rid:${this.resizerId}> Sleeping for ${timeout} ms`);
|
this.logger.log('info', 'debug', `[Resizer::setAr] <rid:${this.resizerId}> Sleeping for ${timeout} ms`);
|
||||||
await sleep(timeout);
|
await sleep(timeout);
|
||||||
|
Loading…
Reference in New Issue
Block a user