Skip to content

timers: reuse timer in `setTimeout().unref()`

Rodrigo Muino Tomonari requested to merge github/fork/indutny/fix/gh-1264 into master

Instead of creating new timer - reuse the timer from the freelist. This won't make the freelist timer active for the duration of uv_close(), and will let the event-loop exit properly.

Fix: #1264 (closed)

R=@trevnorris @Fishrock123

Merge request reports

Loading