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:
DDSRem
2026-03-24 20:44:26 +08:00
parent 4612d3cdde
commit bd68bcfd27

View File

@@ -41,7 +41,7 @@ class ConfigReloadMixin:
logger.info(
f"配置 {', '.join(changed_keys)} 变更,重载 {self.get_reload_name()}..."
)
self.on_config_changed()
await self.on_config_changed()
else:
def wrapper(self: ConfigReloadMixin, event: Event):