mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-02-27 22:36:35 +00:00
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 {
|
||||
return websocket_ != nullptr;
|
||||
return websocket_ != nullptr && websocket_->IsConnected();
|
||||
}
|
||||
|
||||
void WebsocketProtocol::CloseAudioChannel() {
|
||||
|
||||
Reference in New Issue
Block a user