[client] update

This commit is contained in:
IrvingGao 2024-06-13 23:27:26 +08:00
parent efa1ee211d
commit ef9c53caf7
1 changed files with 1 additions and 1 deletions

View File

@ -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()