mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix: 完善插件恢复与运行态收敛 (#6376)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from concurrent.futures import Future
|
||||
|
||||
from app.application.commands import register_command_class
|
||||
from app.command import Command
|
||||
|
||||
@@ -19,8 +21,8 @@ def stop_command():
|
||||
pass
|
||||
|
||||
|
||||
def restart_command():
|
||||
def restart_command() -> Future:
|
||||
"""
|
||||
重启命令
|
||||
重建命令并返回完成信号。
|
||||
"""
|
||||
Command().init_commands()
|
||||
return Command().init_commands()
|
||||
|
||||
Reference in New Issue
Block a user