From 80974dc85b87e406fa7c4aa3e998c2a0ab7808a9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 1 Oct 2010 11:01:43 -0700 Subject: [PATCH] Drop reference to timer callback on clearTimeout Reported here: http://groups.google.com/group/nodejs-dev/browse_thread/thread/9e063d0938f99879 Would be good to test this somehow... --- src/node.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node.js b/src/node.js index 6d07692b7ab..7f3038563e0 100644 --- a/src/node.js +++ b/src/node.js @@ -603,6 +603,7 @@ global.setInterval = function (callback, repeat) { global.clearTimeout = function (timer) { if (timer instanceof process.Timer) { + timer.callback = null; timer.stop(); } };