mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-21 22:53:56 +08:00
fix:唤醒词服务启动失败不阻塞测试页面
This commit is contained in:
@@ -35,8 +35,11 @@ def main() -> int:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
with app_lock:
|
with app_lock:
|
||||||
app.setup()
|
try:
|
||||||
app.start()
|
app.setup()
|
||||||
|
app.start()
|
||||||
|
except Exception as e:
|
||||||
|
print(f"警告: 唤醒词服务启动失败({e}),测试页面仍可正常使用")
|
||||||
http_server.serve_forever()
|
http_server.serve_forever()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("test runtime stopped")
|
print("test runtime stopped")
|
||||||
|
|||||||
Reference in New Issue
Block a user