Skip to content

Commit

Permalink
Fixed polling error
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjhanToteck committed Mar 12, 2024
1 parent c54bf67 commit 1cb7d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DirectoryWatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ class DirectoryWatcher extends EventEmitter {
this.watchInParentDirectory();
}
this.watcher = watchEventSource.watch(this.path);
this.watcher.on("change", this.onWatchEvent.bind(this));
this.watcher.on("error", this.onWatcherError.bind(this));
}
this.watcher.on("change", this.onWatchEvent.bind(this));
this.watcher.on("error", this.onWatcherError.bind(this));
} catch (err) {
this.onWatcherError(err);
}
Expand Down

0 comments on commit 1cb7d59

Please sign in to comment.