From ed0e51114cd7bc13dc8c0349718f887070799e23 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 30 Apr 2020 00:40:12 +0200 Subject: [PATCH] Change timeouts again --- src/ext/lib/video-transform/Resizer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ext/lib/video-transform/Resizer.js b/src/ext/lib/video-transform/Resizer.js index 1f91376..b66821e 100644 --- a/src/ext/lib/video-transform/Resizer.js +++ b/src/ext/lib/video-transform/Resizer.js @@ -280,8 +280,8 @@ class Resizer { } // fire first few rechecks in quick succession, but start increasing timeout // later down the line. - if (iteration > 3) { - timeout = Math.max(2 * timeout, 1000); + if (iteration > 0 && iteration % 0 == 0) { + timeout = Math.min(2 * timeout, 1000); } this.logger.log('info', 'debug', `[Resizer::setAr] Sleeping for ${timeout} ms`); await sleep(timeout);