[client] update
This commit is contained in:
parent
efa1ee211d
commit
ef9c53caf7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue