mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-26 04:39:53 +01:00
fix:唤醒词服务启动失败不阻塞测试页面
This commit is contained in:
parent
725c562aa1
commit
fb469a3ee3
1 changed files with 5 additions and 2 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue