Skip to content

Commit

Permalink
Fix queueGenerator schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jul 5, 2021
1 parent 34b0793 commit a605527
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,13 @@ class Environment extends Base {
if (schedule) {
this.runLoop.add(
'environment:run',
async () => {
await runGenerator();
async (done, stop) => {
try {
await runGenerator();
done();
} catch (error) {
stop(error);
}
}
);
} else {
Expand Down

0 comments on commit a605527

Please sign in to comment.