Skip to content

Commit

Permalink
fix(ignore): Fix `Cannot read properties of undefined (reading 'clien…
Browse files Browse the repository at this point in the history
…ts')` #24957
  • Loading branch information
Koenkk committed Nov 29, 2024
1 parent d82d782 commit 7047aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/extension/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ export default class Frontend extends Extension {

override async stop(): Promise<void> {
await super.stop();
this.wss.clients.forEach((client) => {
this.wss?.clients.forEach((client) => {
client.send(stringify({topic: 'bridge/state', payload: 'offline'}));
client.terminate();
});
this.wss.close();
this.wss?.close();

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

0 comments on commit 7047aef

Please sign in to comment.