mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
refactor: unify message channel shutdown convergence
This commit is contained in:
@@ -69,13 +69,9 @@ class WechatClawBotModule(_MessageChannelModuleBase[WechatClawBot]):
|
||||
"""
|
||||
return False
|
||||
|
||||
def stop(self) -> None:
|
||||
"""停止模块"""
|
||||
for client in self.get_instances().values():
|
||||
try:
|
||||
client.stop()
|
||||
except Exception as err:
|
||||
logger.error(f"停止微信 ClawBot 模块实例失败:{err}")
|
||||
def stop(self) -> bool:
|
||||
"""停止全部微信 ClawBot 实例,并返回资源是否全部收敛。"""
|
||||
return self._stop_service_instances()
|
||||
|
||||
def _test_connection(self, client) -> Tuple[bool, str]:
|
||||
"""微信 ClawBot 的连接探测返回 (状态, 信息)。"""
|
||||
|
||||
Reference in New Issue
Block a user