mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-02 23:14:49 +08:00
Only poll if it has never opened
This commit is contained in:
@@ -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", () => {
|
||||
|
Reference in New Issue
Block a user