Only terminate worker after the worker completes work

This commit is contained in:
Corey Johnson & Kevin Sawicki
2013-02-19 10:39:21 -08:00
parent eb7ed3df33
commit 7db83662b5
4 changed files with 13 additions and 8 deletions

View File

@@ -13,5 +13,5 @@ class LoadPathsTask extends Task
@callWorkerMethod('loadPaths', rootPath, ignoredNames, excludeGitIgnoredPaths)
pathsLoaded: (paths) ->
@terminate()
@done()
@callback(paths)

View File

@@ -13,7 +13,7 @@ class LoadSnippetsTask extends Task
loadNextPackageSnippets: ->
unless @packages.length
@terminate()
@done()
@snippets.loaded = true
return