Skip to content

Commit

Permalink
Remove idleTimeout from item when unenroll. Fixes nodejs#2114
Browse files Browse the repository at this point in the history
  • Loading branch information
James Hartig committed Dec 19, 2011
1 parent 926365c commit f328c8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ Socket.prototype.setTimeout = function(msecs, callback) {


Socket.prototype._onTimeout = function() {
debug("_onTimeout");
this.emit('timeout');
};

Expand Down
2 changes: 2 additions & 0 deletions lib/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};


Expand Down

0 comments on commit f328c8a

Please sign in to comment.