From 43ead841a4714867cc315e865e47661ea18fe96f Mon Sep 17 00:00:00 2001 From: Sakura-RanChen <1908198662@qq.com> Date: Mon, 15 Dec 2025 17:31:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AD=89=E5=BE=85=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E6=88=90=E5=8A=9F=E8=AE=BE=E7=BD=AE=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/connection.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/xiaozhi-server/core/connection.py b/main/xiaozhi-server/core/connection.py index 236d4e51..0d3e4090 100644 --- a/main/xiaozhi-server/core/connection.py +++ b/main/xiaozhi-server/core/connection.py @@ -434,6 +434,7 @@ class ConnectionHandler: self.tts.open_audio_channels(self), self.loop ) if self.need_bind: + self.bind_completed_event.set() return self.selected_module_str = build_module_string( self.config.get("selected_module", {}) @@ -574,16 +575,13 @@ class ConnectionHandler: self.bind_completed_event.set() except DeviceNotFoundException as e: self.need_bind = True - self.bind_completed_event.set() # 状态已确定,设置事件 private_config = {} except DeviceBindException as e: self.need_bind = True self.bind_code = e.bind_code - self.bind_completed_event.set() # 状态已确定,设置事件 private_config = {} except Exception as e: self.need_bind = True - self.bind_completed_event.set() # 状态已确定,设置事件 self.logger.bind(tag=TAG).error(f"异步获取差异化配置失败: {e}") private_config = {}