mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
fix(runtime): 收口调度与事件异步任务生命周期 (#6415)
This commit is contained in:
@@ -16,7 +16,7 @@ def init_scheduler():
|
||||
|
||||
def stop_scheduler():
|
||||
"""
|
||||
停止定时器;生命周期事件循环中返回有限等待的兼容协程。
|
||||
停止定时器;生命周期事件循环中返回可等待的收口协程。
|
||||
"""
|
||||
scheduler = Scheduler()
|
||||
try:
|
||||
@@ -24,7 +24,7 @@ def stop_scheduler():
|
||||
except RuntimeError:
|
||||
scheduler.stop()
|
||||
return None
|
||||
return scheduler.async_stop()
|
||||
return scheduler.stop_async()
|
||||
|
||||
|
||||
def restart_scheduler():
|
||||
|
||||
Reference in New Issue
Block a user