mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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...
This commit is contained in:
1 parent
16f736200a
commit
80974dc85b
1 file changed
+1
@@ -603,6 +603,7 @@ global.setInterval = function (callback, repeat) {
|
||||
|
||||
global.clearTimeout = function (timer) {
|
||||
if (timer instanceof process.Timer) {
|
||||
timer.callback = null;
|
||||
timer.stop();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user