mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Fix another Failed to call 'Frontend' 'stop' . https://github.com/Koenkk/zigbee2mqtt/issues/16317
This commit is contained in:
@@ -85,7 +85,10 @@ export default class Frontend extends Extension {
|
||||
client.terminate();
|
||||
});
|
||||
this.wss?.close();
|
||||
return new Promise((cb: () => void) => this.server.close(cb));
|
||||
/* istanbul ignore else */
|
||||
if (this.server) {
|
||||
return new Promise((cb: () => void) => this.server.close(cb));
|
||||
}
|
||||
}
|
||||
|
||||
@bind private onRequest(request: http.IncomingMessage, response: http.ServerResponse): void {
|
||||
|
||||
Reference in New Issue
Block a user