mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
3.7 again
This commit is contained in:
parent
c40beecf43
commit
b58aa6f526
|
@ -386,7 +386,7 @@ def shutdown(loop, signal=None):
|
|||
if len(messagequeue) > 0:
|
||||
logger.warning("Some messages are still queued!")
|
||||
for task in asyncio.all_tasks(loop):
|
||||
logger.debug("Killing task {}".format(task.get_name()))
|
||||
logger.debug("Killing task")
|
||||
task.cancel()
|
||||
loop.run_until_complete(asyncio.gather(*asyncio.all_tasks(loop)))
|
||||
loop.stop()
|
||||
|
|
Loading…
Reference in a new issue