diff --git a/src/filesystem-manager.js b/src/filesystem-manager.js index 5d4c6408a..7cea7f298 100644 --- a/src/filesystem-manager.js +++ b/src/filesystem-manager.js @@ -105,6 +105,11 @@ class NativeWatcher { this.emitter.emit('did-stop') } + // Private: Detach any event subscribers. + dispose () { + this.emitter.dispose() + } + // Private: Callback function invoked by the native watcher when a debounced group of filesystem events arrive. // Normalize and re-broadcast them to any subscribers. //