summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-03-10 17:45:56 +0300
committerDevaev Maxim <[email protected]>2021-03-10 17:45:56 +0300
commit394af7a180ecb81b39c4bbd8300a4404ff72e867 (patch)
tree271dca3a1bc64339678d166189288c08a70207a7 /kvmd
parent5a1a22b27c68cdfbbf8bca85dc405a036e28793a (diff)
fixed ws event CLOSED
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/clients/kvmd.py2
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}")