Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Drop reference to timer callback on clearTimeout
Browse files Browse the repository at this point in the history
Reported here:
http://groups.google.com/group/nodejs-dev/browse_thread/thread/9e063d0938f99879

Would be good to test this somehow...
  • Loading branch information
ry committed Oct 1, 2010
1 parent 16f7362 commit 80974dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node.js
Expand Up @@ -603,6 +603,7 @@ global.setInterval = function (callback, repeat) {

global.clearTimeout = function (timer) {
if (timer instanceof process.Timer) {
timer.callback = null;
timer.stop();
}
};
Expand Down

0 comments on commit 80974dc

Please sign in to comment.