diff options
author | Devaev Maxim <[email protected]> | 2020-12-02 14:37:48 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-12-02 14:37:48 +0300 |
commit | 2b064a3bee87a13930e1212b583278ff2a8117db (patch) | |
tree | 13aec1649cdda610c3e293386a41698eaaa3ff00 /kvmd/apps/vnc/server.py | |
parent | 9dbf7f1d0ba5639ec5a4a699213660d72a3ba1c4 (diff) |
basic python 3.9 support
Diffstat (limited to 'kvmd/apps/vnc/server.py')
-rw-r--r-- | kvmd/apps/vnc/server.py | 2 |
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)) |