aboutsummaryrefslogtreecommitdiff
path: root/node_modules/chokidar/lib/fsevents-handler.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/chokidar/lib/fsevents-handler.js')
-rw-r--r--node_modules/chokidar/lib/fsevents-handler.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/chokidar/lib/fsevents-handler.js b/node_modules/chokidar/lib/fsevents-handler.js
index dbf6adeed..ddda6ef81 100644
--- a/node_modules/chokidar/lib/fsevents-handler.js
+++ b/node_modules/chokidar/lib/fsevents-handler.js
@@ -374,6 +374,7 @@ function(path, transform, forceAdd, priorDepth) {
if (this.options.persistent && forceAdd !== true) {
var initWatch = function(error, realPath) {
+ if (this.closed) return;
var closer = this._watchWithFsEvents(
wh.watchPath,
sysPath.resolve(realPath || wh.watchPath),