From 7ec79a00fc76297dccc767967be178ae1e0e20b6 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Thu, 22 Jun 2017 08:39:36 -0400 Subject: [PATCH] Set running = false before the asynchronous stop operation --- src/filesystem-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesystem-manager.js b/src/filesystem-manager.js index 8da8bdab0..3096e237a 100644 --- a/src/filesystem-manager.js +++ b/src/filesystem-manager.js @@ -111,9 +111,9 @@ class NativeWatcher { if (!this.running) { return } + this.running = false await this.watcher.stop() - this.running = false this.emitter.emit('did-stop') }