From f328c8ac27246f8ff1313a1a4e9d851431b05cb2 Mon Sep 17 00:00:00 2001 From: James Hartig Date: Fri, 2 Dec 2011 03:27:35 -0500 Subject: [PATCH] Remove idleTimeout from item when unenroll. Fixes #2114 --- lib/net.js | 1 + lib/timers.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/net.js b/lib/net.js index e1821739534..d57d4c43e92 100644 --- a/lib/net.js +++ b/lib/net.js @@ -148,6 +148,7 @@ Socket.prototype.setTimeout = function(msecs, callback) { Socket.prototype._onTimeout = function() { + debug("_onTimeout"); this.emit('timeout'); }; diff --git a/lib/timers.js b/lib/timers.js index 52f357f57de..35085e0c15a 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -108,6 +108,8 @@ var unenroll = exports.unenroll = function(item) { list.close(); delete lists[item._idleTimeout]; } + //if active is called later, then we want to make sure not to insert again + delete item._idleTimeout; };