mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Set running = false before the asynchronous stop operation
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user