No longer using the global variable "stat" in unwatchFile
This commit is contained in:
parent
5cc1428d5f
commit
43ddc04bb0
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user