mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Fixed python3.9 compat issue in policy daemon.
This commit is contained in:
@@ -60,7 +60,7 @@ class Command(BaseCommand):
|
||||
server.close()
|
||||
loop.run_until_complete(server.wait_closed())
|
||||
# Cancel pending tasks
|
||||
for task in asyncio.Task.all_tasks():
|
||||
for task in asyncio.all_tasks(loop):
|
||||
task.cancel()
|
||||
# Await task to execute it's cancellation. Cancelled task
|
||||
# raises asyncio.CancelledError that we can suppress
|
||||
|
||||
Reference in New Issue
Block a user