summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-05-04 12:37:05 +0300
committerMaxim Devaev <[email protected]>2023-05-04 12:37:05 +0300
commitb5353e63cd52b0d98e7a56acc5c8fbfc6ad8b3ee (patch)
tree3176f1a738b9533e6f3a28b132e4501a6f97f991 /kvmd/apps
parentb5d67314977a7e475fac164446031ca7c83b8bc4 (diff)
python 3.11 fixes
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/kvmd/streamer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/apps/kvmd/streamer.py b/kvmd/apps/kvmd/streamer.py
index 3cdb301a..ce4db816 100644
--- a/kvmd/apps/kvmd/streamer.py
+++ b/kvmd/apps/kvmd/streamer.py
@@ -329,7 +329,10 @@ class Streamer: # pylint: disable=too-many-instance-attributes
if waiter_task is None:
waiter_task = asyncio.create_task(self.__notifier.wait())
- if waiter_task in (await aiotools.wait_first(asyncio.sleep(self.__state_poll), waiter_task))[0]:
+ if waiter_task in (await aiotools.wait_first(
+ asyncio.ensure_future(asyncio.sleep(self.__state_poll)),
+ waiter_task,
+ ))[0]:
waiter_task = None
# =====