Commit 99131140 authored by pythongosssss's avatar pythongosssss
Browse files

Only poll if it has never opened

parent 0e7b98e4
......@@ -39,7 +39,9 @@ class ComfyApi extends EventTarget {
this.socket.addEventListener("error", () => {
if (this.socket) this.socket.close();
if (!opened) {
this.#pollQueue();
}
});
this.socket.addEventListener("close", () => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment