mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-07 07:41:28 +08:00
fix: await async config reload handlers
Restore awaiting of async on_config_changed callbacks in ConfigReloadMixin to ensure config reload logic executes correctly. Made-with: Cursor
This commit is contained in:
@@ -41,7 +41,7 @@ class ConfigReloadMixin:
|
|||||||
logger.info(
|
logger.info(
|
||||||
f"配置 {', '.join(changed_keys)} 变更,重载 {self.get_reload_name()}..."
|
f"配置 {', '.join(changed_keys)} 变更,重载 {self.get_reload_name()}..."
|
||||||
)
|
)
|
||||||
self.on_config_changed()
|
await self.on_config_changed()
|
||||||
else:
|
else:
|
||||||
|
|
||||||
def wrapper(self: ConfigReloadMixin, event: Event):
|
def wrapper(self: ConfigReloadMixin, event: Event):
|
||||||
|
|||||||
Reference in New Issue
Block a user