fix websocket mode not responding after close conn

This commit is contained in:
Terrence
2025-02-02 18:13:34 +08:00
parent 5be81638aa
commit e49c520349

View File

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