mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-10-07 13:57:14 +08:00
Fix bug
This commit is contained in:
parent
67418eef08
commit
06efba1b13
@ -38,7 +38,7 @@ class TerminalService:
|
|||||||
|
|
||||||
new_size = self.update_size()
|
new_size = self.update_size()
|
||||||
|
|
||||||
for client_id in self.subscriptions:
|
for client_id in self.subscriptions.copy(): # prevent: Set changed size during iteration
|
||||||
if client_id not in self.server.sockets:
|
if client_id not in self.server.sockets:
|
||||||
# Automatically unsub if the socket has disconnected
|
# Automatically unsub if the socket has disconnected
|
||||||
self.unsubscribe(client_id)
|
self.unsubscribe(client_id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user