From fe176929c2963d1e48d34e8f2cb367d9801395a0 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Sun, 7 Jul 2013 18:20:07 -0700 Subject: [PATCH] timers: internal unref timers should use Timer.now --- lib/timers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/timers.js b/lib/timers.js index 8911e2ebf7..f4a60690c6 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -377,7 +377,7 @@ var unrefList, unrefTimer; function unrefTimeout() { - var now = Date.now(); + var now = Timer.now(); debug('unrefTimer fired'); @@ -436,7 +436,7 @@ exports._unrefActive = function(item) { unrefTimer.ontimeout = unrefTimeout; } - var now = Date.now(); + var now = Timer.now(); item._idleStart = now; if (L.isEmpty(unrefList)) {