mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
add buffer for nullptr res
This commit is contained in:
parent
d6796f3de2
commit
37f078ef5f
@ -85,6 +85,7 @@ void WebSocketServer::do_decoder(const std::vector<char>& buffer,
|
||||
stamp_sents = FunASRGetStampSents(Result);
|
||||
FunASRFreeResult(Result);
|
||||
} else{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(20));
|
||||
LOG(ERROR) << "FUNASR_RESULT is nullptr.";
|
||||
}
|
||||
}catch (std::exception const& e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user