Skip to content

Commit

Permalink
Update deprecated usage of asyncio.wait() (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
musicinmybrain committed Jun 8, 2022
1 parent 9c65707 commit d3a23c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engineio/asyncio_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def disconnect(self, sid=None):
if sid in self.sockets: # pragma: no cover
del self.sockets[sid]
else:
await asyncio.wait([client.close()
await asyncio.wait([asyncio.create_task(client.close())
for client in self.sockets.values()])
self.sockets = {}

Expand Down

0 comments on commit d3a23c0

Please sign in to comment.