forked from xiaozhi/xiaozhi-esp32
fix websocket mode not responding after close conn
This commit is contained in:
@@ -40,7 +40,7 @@ void WebsocketProtocol::SendText(const std::string& text) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool WebsocketProtocol::IsAudioChannelOpened() const {
|
bool WebsocketProtocol::IsAudioChannelOpened() const {
|
||||||
return websocket_ != nullptr;
|
return websocket_ != nullptr && websocket_->IsConnected();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebsocketProtocol::CloseAudioChannel() {
|
void WebsocketProtocol::CloseAudioChannel() {
|
||||||
|
|||||||
Reference in New Issue
Block a user