From 6f3a391bc171dd4492a67362b4f1f97a074906ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 18 Dec 2023 19:23:34 +0100 Subject: [PATCH] refactor: allow to disable tasks end wait time MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pools/utils.ts b/src/pools/utils.ts index 3b98fbdc..c7ab2d1e 100644 --- a/src/pools/utils.ts +++ b/src/pools/utils.ts @@ -351,7 +351,7 @@ export const waitWorkerNodeEvents = async < resolve(events) } }) - if (timeout > 0) { + if (timeout >= 0) { setTimeout(() => { resolve(events) }, timeout) -- 2.34.1