Skip to content

Commit

Permalink
return early instead of throwing (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper De Moor authored and devongovett committed Apr 28, 2018
1 parent 42be29b commit c12bc1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/parcel-bundler/src/workerfarm/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ class Worker extends EventEmitter {
} else if (type === 'response') {
let call = this.calls.get(idx);
if (!call) {
throw new Error(
`Worker Farm: Received message for unknown index for existing child. This should not happen!`
);
// Return for unknown calls, these might accur if a third party process uses workers
return;
}

if (contentType === 'error') {
Expand Down

0 comments on commit c12bc1e

Please sign in to comment.