basic python 3.9 support

This commit is contained in:
Devaev Maxim
2020-12-02 14:37:48 +03:00
parent 9dbf7f1d0b
commit 2b064a3bee
9 changed files with 10 additions and 7 deletions

View File

@@ -435,7 +435,7 @@ class VncServer: # pylint: disable=too-many-instance-attributes
server.close()
loop.run_until_complete(server.wait_closed())
finally:
tasks = asyncio.Task.all_tasks()
tasks = asyncio.all_tasks(loop)
for task in tasks:
task.cancel()
loop.run_until_complete(asyncio.gather(*tasks, return_exceptions=True))