mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 18:58:59 +03:00
daemon: Fix removal while iterating over connections set (#14887)
This commit is contained in:
parent
b8e5aebf54
commit
3e76f78e37
@ -279,7 +279,7 @@ class WebSocketServer:
|
||||
return ws
|
||||
|
||||
async def send_all_responses(self, connections: Set[WebSocketResponse], response: str) -> None:
|
||||
for connection in connections:
|
||||
for connection in connections.copy():
|
||||
try:
|
||||
await connection.send_str(response)
|
||||
except Exception as e:
|
||||
|
Loading…
Reference in New Issue
Block a user