Skip to content

timers: avoid calling a timer handler if handle closing#746

Merged
saghul merged 1 commit intomasterfrom
fix-timer-typeerror
Feb 2, 2026
Merged

timers: avoid calling a timer handler if handle closing#746
saghul merged 1 commit intomasterfrom
fix-timer-typeerror

Conversation

@saghul
Copy link
Copy Markdown
Owner

@saghul saghul commented Feb 2, 2026

It's possible timerA stops timerB when timerB is already scheduled to
run.

Since we set the handler function to undefined as part of closing it,
this will trigger a TypeError and the event loop will be stopped.

It's possible timerA stops timerB when timerB is already scheduled to
run.

Since we set the handler function to undefined as part of closing it,
this will trigger a TypeError and the event loop will be stopped.
@saghul saghul merged commit 3b6cf7a into master Feb 2, 2026
19 checks passed
@saghul saghul deleted the fix-timer-typeerror branch February 2, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant