فهرست منبع

add buffer for nullptr res

雾聪 2 سال پیش
والد
کامیت
37f078ef5f
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      runtime/websocket/bin/websocket-server.cpp

+ 1 - 0
runtime/websocket/bin/websocket-server.cpp

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