fix(webui): reset connected flag on manual disconnect

This commit is contained in:
xiaoxixi 2026-07-24 09:51:59 +08:00
parent 8dc5889b87
commit c64984b496

View File

@ -42,6 +42,7 @@ class ChatClient {
clearTimeout(this.#reconnectTimer); clearTimeout(this.#reconnectTimer);
this.#socket?.close(); this.#socket?.close();
this.#socket = null; this.#socket = null;
this.connected = false;
} }
send(frame) { send(frame) {