Skip to content

Commit

Permalink
Update vulnerable packages, and adapt some unit-tests to new code
Browse files Browse the repository at this point in the history
  • Loading branch information
MrShoenel committed Jan 20, 2022
1 parent 015b096 commit ecc91cb
Show file tree
Hide file tree
Showing 4 changed files with 360 additions and 606 deletions.
9 changes: 7 additions & 2 deletions lib/JobQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,13 @@ class Job extends EventEmitter {
const subs = obs.subscribe(
procOut => progress.reportProgress(procOut),
procErr => {
subs.unsubscribe();
reject(procErr);
const errs = [procErr];
try {
subs.unsubscribe();
} catch (e) {
errs.push(e);
}
reject(errs);
},
() => resolve(processWrapper.result)
);
Expand Down
Loading

0 comments on commit ecc91cb

Please sign in to comment.