mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only terminate worker after the worker completes work
This commit is contained in:
@@ -13,5 +13,5 @@ class LoadPathsTask extends Task
|
||||
@callWorkerMethod('loadPaths', rootPath, ignoredNames, excludeGitIgnoredPaths)
|
||||
|
||||
pathsLoaded: (paths) ->
|
||||
@terminate()
|
||||
@done()
|
||||
@callback(paths)
|
||||
|
||||
@@ -13,7 +13,7 @@ class LoadSnippetsTask extends Task
|
||||
|
||||
loadNextPackageSnippets: ->
|
||||
unless @packages.length
|
||||
@terminate()
|
||||
@done()
|
||||
@snippets.loaded = true
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user