auto-sync: 2026-05-17 05:53:09

This commit is contained in:
cfdaily
2026-05-17 05:53:09 +08:00
parent 32c9fbd874
commit 151e444734
2 changed files with 246 additions and 3 deletions
-3
View File
@@ -52,7 +52,6 @@ class InboxWatcher:
async def start(self) -> None:
"""启动监听"""
import asyncio
if self._running:
return
self._running = True
@@ -62,7 +61,6 @@ class InboxWatcher:
async def stop(self) -> None:
"""停止监听"""
import asyncio
self._running = False
if self._task:
self._task.cancel()
@@ -90,7 +88,6 @@ class InboxWatcher:
# ------------------------------------------------------------------
async def _loop(self) -> None:
import asyncio
while self._running:
try:
await self.poll()