diff options
author | Devaev Maxim <[email protected]> | 2021-03-10 17:45:56 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-03-10 17:45:56 +0300 |
commit | 394af7a180ecb81b39c4bbd8300a4404ff72e867 (patch) | |
tree | 271dca3a1bc64339678d166189288c08a70207a7 /kvmd/clients | |
parent | 5a1a22b27c68cdfbbf8bca85dc405a036e28793a (diff) |
fixed ws event CLOSED
Diffstat (limited to 'kvmd/clients')
-rw-r--r-- | kvmd/clients/kvmd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/clients/kvmd.py b/kvmd/clients/kvmd.py index d1934cd4..2ee6c60a 100644 --- a/kvmd/clients/kvmd.py +++ b/kvmd/clients/kvmd.py @@ -153,7 +153,7 @@ class KvmdClientWs: msg = receive_task.result() if msg.type == aiohttp.WSMsgType.TEXT: yield json.loads(msg.data) - elif msg.type == aiohttp.WSMsgType.CLOSE: + elif msg.type == aiohttp.WSMsgType.CLOSED: break else: raise RuntimeError(f"Unhandled WS message type: {msg!r}") |