Browse Source

timers: internal unref timers should use Timer.now

Timothy J Fontaine 12 years ago
parent
commit
fe176929c2
  1. 4
      lib/timers.js

4
lib/timers.js

@ -377,7 +377,7 @@ var unrefList, unrefTimer;
function unrefTimeout() { function unrefTimeout() {
var now = Date.now(); var now = Timer.now();
debug('unrefTimer fired'); debug('unrefTimer fired');
@ -436,7 +436,7 @@ exports._unrefActive = function(item) {
unrefTimer.ontimeout = unrefTimeout; unrefTimer.ontimeout = unrefTimeout;
} }
var now = Date.now(); var now = Timer.now();
item._idleStart = now; item._idleStart = now;
if (L.isEmpty(unrefList)) { if (L.isEmpty(unrefList)) {

Loading…
Cancel
Save