add buffer for nullptr res

This commit is contained in:
雾聪 2024-01-15 20:32:01 +08:00
parent d6796f3de2
commit 37f078ef5f

View File

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