This commit is contained in:
retoor 2025-08-06 14:18:01 +02:00
parent 3759306e38
commit e62da0aef1

View File

@ -77,7 +77,7 @@ class SocketService(BaseService):
async def send_to_user(self, user_uid, message):
count = 0
for s in self.users.get(user_uid, []):
for s in list(self.users.get(user_uid, [])):
if await s.send_json(message):
count += 1
return count