1
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:
pythongosssss
2023-03-03 21:13:11 +00:00
parent 0e7b98e429
commit 9913114044

View File

@@ -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", () => {