Skip to content

Commit d7894f3

Browse files
committed
timers: use start instead of stop + start
Instead of calling stop + start from the refresh method of Timeout, instead just call start as libuv already calls stop if necessary. PR-URL: #18486 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
1 parent 71c0d03 commit d7894f3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/internal/timers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ Timeout.prototype[refreshFnSymbol] = function refresh() {
8585
// Would be more ideal with uv_timer_again(), however that API does not
8686
// cause libuv's sorted timers data structure (a binary heap at the time
8787
// of writing) to re-sort itself. This causes ordering inconsistencies.
88-
this._handle.stop();
8988
this._handle.start(this._idleTimeout);
9089
} else if (this[unrefedSymbol]) {
9190
getTimers()._unrefActive(this);

0 commit comments

Comments
 (0)