some small bug fix

This commit is contained in:
MuXinCG
2026-02-20 19:40:42 +08:00
parent 13d6852857
commit 86a288b3a1
5 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -347,7 +347,7 @@ class DingTalkChannel(Channel, WebSocketMixin, TokenMixin):
pass
self._ws_task = None
await self._stop_ws()
if self._http_client:
if hasattr(self, "_http_client") and self._http_client:
await self._http_client.aclose()
self._http_client = None
self._access_token = None