auto-sync: 2026-05-19 23:32:57

This commit is contained in:
cfdaily
2026-05-19 23:32:57 +08:00
parent 622210d653
commit 78b9956819
+7
View File
@@ -104,6 +104,13 @@ class Ticker:
async def stop(self) -> None:
"""停止 tick 循环"""
self._running = False
# 停止 InboxWatcher
if self.inbox_watcher:
try:
await self.inbox_watcher.stop()
logger.info("InboxWatcher stopped")
except Exception as e:
logger.warning("InboxWatcher stop failed: %s", e)
if self._task:
self._task.cancel()
try: