3.7 again

This commit is contained in:
Frisk 2020-08-11 23:12:10 +02:00
parent c40beecf43
commit b58aa6f526
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -386,7 +386,7 @@ def shutdown(loop, signal=None):
if len(messagequeue) > 0: if len(messagequeue) > 0:
logger.warning("Some messages are still queued!") logger.warning("Some messages are still queued!")
for task in asyncio.all_tasks(loop): for task in asyncio.all_tasks(loop):
logger.debug("Killing task {}".format(task.get_name())) logger.debug("Killing task")
task.cancel() task.cancel()
loop.run_until_complete(asyncio.gather(*asyncio.all_tasks(loop))) loop.run_until_complete(asyncio.gather(*asyncio.all_tasks(loop)))
loop.stop() loop.stop()