mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-15 09:22:37 +08:00
fix(tests): stabilize messaging shutdown (#5979)
This commit is contained in:
@@ -264,6 +264,11 @@ class Feishu:
|
||||
@staticmethod
|
||||
async def _disconnect_ws_client_quietly(ws_client: lark.ws.Client) -> None:
|
||||
"""静默关闭飞书 WebSocket,避免 SDK 在关机时打印带敏感参数的连接地址。"""
|
||||
if ws_client._conn is None:
|
||||
ws_client._conn_url = ""
|
||||
ws_client._conn_id = ""
|
||||
ws_client._service_id = ""
|
||||
return
|
||||
await ws_client._lock.acquire()
|
||||
try:
|
||||
if ws_client._conn is not None:
|
||||
|
||||
Reference in New Issue
Block a user