diff options
author | Devaev Maxim <[email protected]> | 2020-07-09 09:41:05 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-09 09:41:05 +0300 |
commit | 5f1733d0024c70ccaf31964980a6286a7951cbed (patch) | |
tree | b9074dc235835a214b66be2405faa777245a2e3f /kvmd/apps/vnc/server.py | |
parent | 53eb74670d040c9e8745433a2641f18796da365c (diff) |
complex info handle
Diffstat (limited to 'kvmd/apps/vnc/server.py')
-rw-r--r-- | kvmd/apps/vnc/server.py | 4 |
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: |