diff --git a/src/default-directory-searcher.coffee b/src/default-directory-searcher.coffee index 448c47377..b244e4f94 100644 --- a/src/default-directory-searcher.coffee +++ b/src/default-directory-searcher.coffee @@ -9,11 +9,11 @@ nextId = 1 activeSearchId = 0 emitter = new EventEmitter -onSearchFinished = () -> +onSearchFinished = -> activeSearchId = null runNextSearch() -runNextSearch = () -> +runNextSearch = -> unless activeSearchId activeSearchId = searchQueue.shift() emitter.emit(activeSearchId, null) if activeSearchId