mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-13 07:50:00 +08:00
refactor: remove enable_lock attribute and enhance locking mechanism in Model class
This commit is contained in:
@@ -94,7 +94,6 @@ __all__ = [
|
||||
|
||||
|
||||
async def cancel_pending_tasks():
|
||||
"""仅取消 zhenxun 业务协程,避免干扰框架的关机流程。"""
|
||||
loop = asyncio.get_running_loop()
|
||||
current = asyncio.current_task(loop=loop)
|
||||
pending = []
|
||||
|
||||
Reference in New Issue
Block a user