Skip to content

Commit

Permalink
fix: followup to prevent unhandled rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Nov 11, 2021
1 parent 153631b commit cc085b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/proxy-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const server = new ProxyChainServer({
server.server.unref();

const listenPromise = server.listen();
// eslint-disable-next-line @typescript-eslint/no-empty-function
listenPromise.catch(() => {});

// eslint-disable-next-line max-len
// https://github.com/microsoft/playwright/blob/2e4722d460b5142267e0e506ca7ea9a259556b5f/packages/playwright-core/src/server/browserContext.ts#L423-L427
Expand Down

0 comments on commit cc085b8

Please sign in to comment.