This commit is contained in:
qiangyanwen 2022-12-13 16:31:42 +08:00
parent 16ccf161ed
commit 48fdfdcf77
1 changed files with 1 additions and 0 deletions

View File

@ -27,4 +27,5 @@ async def websocket_endpoint(
"cpu_info": await get_cpu_info(), "memory_info": await ge_mem_info()}
await manager.send_json(message, websocket)
except (WebSocketDisconnect, RuntimeError):
logger.info("ws开始关闭连接.....")
manager.disconnect(websocket)