Skip to content

Commit

Permalink
fix(fusuma): don't use Promise.all to close connections
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Mar 6, 2021
1 parent ce1734d commit 0f9e713
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/fusuma/src/server/dynamicRenderingServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ async function dynamicRenderingServer(outputDirPath, publicPath, spinner, isThum
}
}

await Promise.all([page.close(), browser.close(), new Promise((r) => app.close(r))]);
await page.close();
await browser.close();
await new Promise((r) => app.close(r));

return logs;
}
Expand Down

0 comments on commit 0f9e713

Please sign in to comment.