Skip to content

Commit

Permalink
#21 Only run fix if its needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Silic0nS0ldier committed Feb 7, 2019
1 parent 9d53d61 commit 41ce86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bundles-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ class BundleSource extends Readable {
// Copy array to we can reduce it as we go
this.paths = paths.slice(0);

// Force out of unpaused (prevents cases where Catcher will never recieve any event)
this.resume();
// Prevent Catcher from becoming stuck when nothing will be coming through
if (this.paths.length === 0) this.resume();

this.Logger = (msg, lvl) => logger(`BundleSource > ${msg}`, lvl);
}
Expand Down

0 comments on commit 41ce86e

Please sign in to comment.