mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
chore: reformat with ruff
This commit is contained in:
@@ -775,9 +775,9 @@ class DingtalkPlatformAdapter(Platform):
|
||||
task = loop.create_task(self.client_.start())
|
||||
# 当 task 完成时唤醒线程(无论是正常退出还是异常退出)
|
||||
task.add_done_callback(
|
||||
lambda _: self._shutdown_event.set()
|
||||
if self._shutdown_event
|
||||
else None
|
||||
lambda _: (
|
||||
self._shutdown_event.set() if self._shutdown_event else None
|
||||
)
|
||||
)
|
||||
self._shutdown_event.wait()
|
||||
if task.done():
|
||||
|
||||
Reference in New Issue
Block a user