Skip to content

Commit cc085b8

Browse files
committed
fix: followup to prevent unhandled rejection
1 parent 153631b commit cc085b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/proxy-server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const server = new ProxyChainServer({
77
server.server.unref();
88

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

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

0 commit comments

Comments
 (0)