Skip to content

timers: handle unrefed intervals in clearTimeout()#9606

Closed
cjihrig wants to merge 1 commit intonodejs:masterfrom
cjihrig:9561
Closed

timers: handle unrefed intervals in clearTimeout()#9606
cjihrig wants to merge 1 commit intonodejs:masterfrom
cjihrig:9561

Conversation

@cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Nov 14, 2016

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

timers

Description of change

This commit clears the _repeat property of all timer objects in clearTimeout(). This prevents intervals passed to clearTimeout() from being rearmed.

Fixes: #9561 (although it does not directly address wrap->object() issue described in #9561 (comment))

R= @bnoordhuis

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants