Skip to content
Snippets Groups Projects
Commit d8c87d7a authored by Michael Loipführer's avatar Michael Loipführer
Browse files

fix missing asyncio.gather

parent d6519bda
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ class WebSocket:
async def send_update(self, msg: Dict):
encoded_msg = json.dumps(msg)
await asyncio.wait([conn.send(encoded_msg) for conn in self.connections])
await asyncio.gather(*[conn.send(encoded_msg) for conn in self.connections])
def _refresh_cache(self):
for token in list(self.cache.keys()):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment