diff --git a/lib/extension/frontend.ts b/lib/extension/frontend.ts index dc6e4c7c72..f9b4c53b38 100644 --- a/lib/extension/frontend.ts +++ b/lib/extension/frontend.ts @@ -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 {