mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-13 14:21:20 +00:00
Only poll if it has never opened
This commit is contained in:
parent
0e7b98e429
commit
9913114044
@ -39,7 +39,9 @@ class ComfyApi extends EventTarget {
|
||||
|
||||
this.socket.addEventListener("error", () => {
|
||||
if (this.socket) this.socket.close();
|
||||
this.#pollQueue();
|
||||
if (!opened) {
|
||||
this.#pollQueue();
|
||||
}
|
||||
});
|
||||
|
||||
this.socket.addEventListener("close", () => {
|
||||
|
Loading…
Reference in New Issue
Block a user