summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-12-02 14:37:48 +0300
committerDevaev Maxim <[email protected]>2020-12-02 14:37:48 +0300
commit2b064a3bee87a13930e1212b583278ff2a8117db (patch)
tree13aec1649cdda610c3e293386a41698eaaa3ff00 /kvmd/apps/vnc
parent9dbf7f1d0ba5639ec5a4a699213660d72a3ba1c4 (diff)
basic python 3.9 support
Diffstat (limited to 'kvmd/apps/vnc')
-rw-r--r--kvmd/apps/vnc/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/vnc/server.py b/kvmd/apps/vnc/server.py
index d871ec3e..ece2fcea 100644
--- a/kvmd/apps/vnc/server.py
+++ b/kvmd/apps/vnc/server.py
@@ -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))