No longer using the global variable "stat" in unwatchFile

This commit is contained in:
Evan Larkin 2010-09-26 11:36:40 -05:00 committed by Ryan Dahl
parent 5cc1428d5f
commit 43ddc04bb0

View File

@ -468,6 +468,7 @@ fs.watchFile = function (filename) {
}; };
fs.unwatchFile = function (filename) { fs.unwatchFile = function (filename) {
var stat;
if (statWatchers[filename]) { if (statWatchers[filename]) {
stat = statWatchers[filename]; stat = statWatchers[filename];
stat.stop(); stat.stop();