From 61aba7d7b97ca962495323a55f5d44caa1505323 Mon Sep 17 00:00:00 2001 From: "Vincent Yanzee J. Tan" Date: Tue, 18 Jun 2024 16:22:49 +0800 Subject: [PATCH] handle edge case on tick utils --- src/catalyst/core/tick.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/catalyst/core/tick.ts b/src/catalyst/core/tick.ts index eaac2b1..9f4a778 100644 --- a/src/catalyst/core/tick.ts +++ b/src/catalyst/core/tick.ts @@ -113,7 +113,7 @@ system.runInterval(() => { // tick timeouts for (const handle of [...timeOuts]) { // if counter drops to zero, execute the timeout - if (--handle.counter != 0) + if (--handle.counter > 0) continue; try {