From ef9c53caf7aee2c3c2d9bc928041c9419ae7ae8a Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Thu, 13 Jun 2024 23:27:26 +0800 Subject: [PATCH] [client] update --- takway/clients/web_socket_client_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/takway/clients/web_socket_client_utils.py b/takway/clients/web_socket_client_utils.py index 6ac963e..5d547a3 100644 --- a/takway/clients/web_socket_client_utils.py +++ b/takway/clients/web_socket_client_utils.py @@ -382,7 +382,7 @@ class WebSocketClinet: if data_type == dict: print(f"{datetime.now()}: receive json data: {response}") # 打印接收到的消息 # 误识别情况 - if response['code'] == 201: + if response['code'] in [201, 501, 502, 503, 504, 505] : # 恢复对话状态 self.listening_event.set() self.speaking_event.clear()