mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update websocket-server-2pass
This commit is contained in:
parent
800b28152b
commit
a8126f7207
@ -152,8 +152,10 @@ void WebSocketServer::do_decoder(
|
||||
} catch (std::exception const& e) {
|
||||
LOG(ERROR) << e.what();
|
||||
}
|
||||
for (auto& vec : punc_cache) {
|
||||
vec.clear();
|
||||
if(punc_cache.size()>0){
|
||||
for (auto& vec : punc_cache) {
|
||||
vec.clear();
|
||||
}
|
||||
}
|
||||
if (Result) {
|
||||
websocketpp::lib::error_code ec;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user