Skip to content

Commit

Permalink
handle edge case on tick utils
Browse files Browse the repository at this point in the history
  • Loading branch information
vytdev committed Jun 18, 2024
1 parent db5bc65 commit 61aba7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/catalyst/core/tick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 61aba7d

Please sign in to comment.