mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 00:23:53 +08:00
fix: 消除死锁隐患
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import asyncio
|
||||
from config.config_loader import read_config, get_project_dir, load_config
|
||||
|
||||
|
||||
@@ -20,7 +21,7 @@ def check_config_file():
|
||||
)
|
||||
|
||||
# 检查是否从API读取配置
|
||||
config = load_config()
|
||||
config = asyncio.run(load_config())
|
||||
if config.get("read_config_from_api", False):
|
||||
print("从API读取配置")
|
||||
old_config_origin = read_config(custom_config_file)
|
||||
|
||||
Reference in New Issue
Block a user