Skip to content

Commit

Permalink
Fix shutdown on Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
dungeon-master-666 committed Nov 12, 2023
1 parent caec127 commit d54b8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ton-http-api/pyTON/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def shutdown(self):
self.tasks['check_children_alive'].cancel()
await self.tasks['check_children_alive']

await asyncio.wait([self.worker_control(i, enabled=False) for i in self.workers])
await asyncio.wait([self.loop.create_task(self.worker_control(i, enabled=False)) for i in self.workers])

self.threadpool_executor.shutdown()

Expand Down

0 comments on commit d54b8a5

Please sign in to comment.