Let 'atom --wait -a folder' exit due to removing the project folder

This commit is contained in:
Max Brunsfeld
2018-01-05 17:43:51 -08:00
parent 1f4ccf3024
commit 386b786d93
3 changed files with 38 additions and 3 deletions

View File

@@ -888,6 +888,7 @@ class AtomApplication extends EventEmitter {
windowDidCloseInitialPath (window, initialPath) {
const waitSessions = this.waitSessionsByWindow.get(window)
if (!waitSessions) return
for (let i = waitSessions.length - 1; i >= 0; i--) {
const session = waitSessions[i]
session.remainingPaths.delete(initialPath)