summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-09 09:41:05 +0300
committerDevaev Maxim <[email protected]>2020-07-09 09:41:05 +0300
commit5f1733d0024c70ccaf31964980a6286a7951cbed (patch)
treeb9074dc235835a214b66be2405faa777245a2e3f /kvmd/apps/vnc
parent53eb74670d040c9e8745433a2641f18796da365c (diff)
complex info handle
Diffstat (limited to 'kvmd/apps/vnc')
-rw-r--r--kvmd/apps/vnc/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/vnc/server.py b/kvmd/apps/vnc/server.py
index 539470a8..73c9c148 100644
--- a/kvmd/apps/vnc/server.py
+++ b/kvmd/apps/vnc/server.py
@@ -149,9 +149,9 @@ class _Client(RfbClient): # pylint: disable=too-many-instance-attributes
self.__kvmd_ws = None
async def __process_ws_event(self, event: Dict) -> None:
- if event["event_type"] == "info_state":
+ if event["event_type"] == "info_meta_state":
try:
- host = event["event"]["meta"]["server"]["host"]
+ host = event["event"]["server"]["host"]
except Exception:
host = None
else: