From e49c52034973372197e2b5bd6fe79975a3e597b1 Mon Sep 17 00:00:00 2001 From: Terrence Date: Sun, 2 Feb 2025 18:13:34 +0800 Subject: [PATCH] fix websocket mode not responding after close conn --- main/protocols/websocket_protocol.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/protocols/websocket_protocol.cc b/main/protocols/websocket_protocol.cc index 156276e5..5b965103 100644 --- a/main/protocols/websocket_protocol.cc +++ b/main/protocols/websocket_protocol.cc @@ -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() {