Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
99131140
"...resnet50_tensorflow.git" did not exist on "72f5834cc19bcfd3aef795dd926575fd9e0db802"
Commit
99131140
authored
Mar 03, 2023
by
pythongosssss
Browse files
Only poll if it has never opened
parent
0e7b98e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
web/scripts/api.js
web/scripts/api.js
+3
-1
No files found.
web/scripts/api.js
View file @
99131140
...
@@ -39,7 +39,9 @@ class ComfyApi extends EventTarget {
...
@@ -39,7 +39,9 @@ class ComfyApi extends EventTarget {
this
.
socket
.
addEventListener
(
"
error
"
,
()
=>
{
this
.
socket
.
addEventListener
(
"
error
"
,
()
=>
{
if
(
this
.
socket
)
this
.
socket
.
close
();
if
(
this
.
socket
)
this
.
socket
.
close
();
this
.
#
pollQueue
();
if
(
!
opened
)
{
this
.
#
pollQueue
();
}
});
});
this
.
socket
.
addEventListener
(
"
close
"
,
()
=>
{
this
.
socket
.
addEventListener
(
"
close
"
,
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment