Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fixed check for polling

pythongosssss4bdfbb3379f7
diff --git a/web/scripts/api.js b/web/scripts/api.js
index 17330cf01..61b786f6e 100644
--- a/web/scripts/api.js
+++ b/web/scripts/api.js
@@ -39,7 +39,7 @@ class ComfyApi extends EventTarget {
this.socket.addEventListener("error", () => {
if (this.socket) this.socket.close();
- if (!opened) {
+ if (!isReconnect && !opened) {
this.#pollQueue();
}
});