mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-17 05:10:04 +08:00
Only poll if it has never opened
This commit is contained in:
parent
4e8c425e3f
commit
44b7acc884
@ -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…
x
Reference in New Issue
Block a user