mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-13 11:57:12 +08:00
Fix bug
This commit is contained in:
parent
67418eef08
commit
06efba1b13
@ -38,7 +38,7 @@ class TerminalService:
|
||||
|
||||
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:
|
||||
# Automatically unsub if the socket has disconnected
|
||||
self.unsubscribe(client_id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user