Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
fix: workers#dropPackage method
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jul 21, 2018
1 parent efae9d7 commit d535e84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/workers/index.coffee
Expand Up @@ -73,9 +73,9 @@ module.exports =
worker.request ['loadAsset', asset.name, pack.path, pack.bundle.id]

dropPackage: (pack) ->
worker = getWorkerForPack pack
worker.packCount -= 1
worker.send ['dropPackage', pack.path, pack.bundle.id]
pack.worker.send ['dropPackage', pack.path, pack.bundle.id]
pack.worker.packCount -= 1
pack.worker = null

dropBundle: (bundle) ->
broadcast ['dropBundle', bundle.id]
Expand Down

0 comments on commit d535e84

Please sign in to comment.