mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
fixed ws event CLOSED
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user