Skip to content

Commit

Permalink
fix: Fix `Failed to call 'Frontend' 'stop' (TypeError: Cannot read pr…
Browse files Browse the repository at this point in the history
…operties of undefined (reading 'close')` #25715
  • Loading branch information
Koenkk committed Jan 11, 2025
1 parent 2d5e7bf commit 9daeba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default class Frontend extends Extension {
});
this.wss?.close();

await new Promise((resolve) => this.server.close(resolve));
await new Promise((resolve) => this.server?.close(resolve));
}

@bind private onRequest(request: IncomingMessage, response: ServerResponse): void {
Expand Down

0 comments on commit 9daeba1

Please sign in to comment.