summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-14 09:06:03 +0300
committerDevaev Maxim <[email protected]>2020-07-14 09:06:03 +0300
commite2f2e8b3595f475222dc11067ef33bfbf410711d (patch)
tree34b5cbb09152b875ebb1726bf4ffbef34b7fb6e5 /kvmd
parent77f3dab55c52859490619825ace4620a5d134901 (diff)
ui for stream resolution
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/apps/kvmd/streamer.py6
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(),
}