mirror of https://github.com/nodejs/node.git
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...pull/5370/head
parent
914ff78df6
commit
5a4c40beea
|
@ -425,6 +425,7 @@ global.setInterval = function (callback, repeat) {
|
||||||
global.clearTimeout = function (timer) {
|
global.clearTimeout = function (timer) {
|
||||||
if (!Timer) Timer = process.binding("timer").Timer;
|
if (!Timer) Timer = process.binding("timer").Timer;
|
||||||
if (timer instanceof Timer) {
|
if (timer instanceof Timer) {
|
||||||
|
timer.callback = null;
|
||||||
timer.stop();
|
timer.stop();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue