diff options
author | Devaev Maxim <[email protected]> | 2020-07-14 09:06:03 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-14 09:06:03 +0300 |
commit | e2f2e8b3595f475222dc11067ef33bfbf410711d (patch) | |
tree | 34b5cbb09152b875ebb1726bf4ffbef34b7fb6e5 /kvmd | |
parent | 77f3dab55c52859490619825ace4620a5d134901 (diff) |
ui for stream resolution
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/kvmd/streamer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/kvmd/streamer.py b/kvmd/apps/kvmd/streamer.py index 59277db8..14485c3c 100644 --- a/kvmd/apps/kvmd/streamer.py +++ b/kvmd/apps/kvmd/streamer.py @@ -248,13 +248,13 @@ class Streamer: # pylint: disable=too-many-instance-attributes # ===== async def get_state(self) -> Dict: - state = None + streamer_state = None if self.__streamer_task: session = self.__ensure_http_session() try: async with session.get(self.__make_url("state")) as response: htclient.raise_not_200(response) - state = (await response.json())["result"] + streamer_state = (await response.json())["result"] except (aiohttp.ClientConnectionError, aiohttp.ServerConnectionError): pass except Exception: @@ -270,7 +270,7 @@ class Streamer: # pylint: disable=too-many-instance-attributes "limits": self.__params.get_limits(), "params": self.__params.get_params(), "snapshot": {"saved": snapshot}, - "state": state, + "streamer": streamer_state, "features": self.__params.get_features(), } |