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...
v0.7.4-release
Ryan Dahl 2010-10-01 11:01:43 -07:00
parent 914ff78df6
commit 5a4c40beea
1 changed files with 1 additions and 0 deletions

View File

@ -425,6 +425,7 @@ global.setInterval = function (callback, repeat) {
global.clearTimeout = function (timer) {
if (!Timer) Timer = process.binding("timer").Timer;
if (timer instanceof Timer) {
timer.callback = null;
timer.stop();
}
};