From 4452c1a75784205c6c5ebe49a817f1ca5aa01712 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期三, 09 八月 2023 16:49:25 +0800
Subject: [PATCH] update websocket-server-2pass

---
 funasr/runtime/websocket/websocket-server-2pass.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/funasr/runtime/websocket/websocket-server-2pass.cpp b/funasr/runtime/websocket/websocket-server-2pass.cpp
index 92a1f5c..b85ce9a 100644
--- a/funasr/runtime/websocket/websocket-server-2pass.cpp
+++ b/funasr/runtime/websocket/websocket-server-2pass.cpp
@@ -123,7 +123,7 @@
       if (Result) {
         websocketpp::lib::error_code ec;
         nlohmann::json jsonresult =
-            handle_result(Result, msg["wav_name"]);
+            handle_result(Result, msg);
         jsonresult["is_final"] = false;
         if(jsonresult["text"] != "") {
           if (is_ssl) {
@@ -154,7 +154,7 @@
       if (Result) {
         websocketpp::lib::error_code ec;
         nlohmann::json jsonresult =
-            handle_result(Result, msg["wav_name"]);
+            handle_result(Result, msg);
         jsonresult["is_final"] = true;
         if (is_ssl) {
           wss_server_->send(hdl, jsonresult.dump(),
@@ -208,6 +208,7 @@
     return;
   }
   scoped_lock guard_decoder(*(data_msg->thread_lock));  //wait for do_decoder finished and avoid access freed tpass_online_handle 
+  LOG(INFO) << "----------------FunTpassOnlineUninit----------------------";
   FunTpassOnlineUninit(data_msg->tpass_online_handle);
   data_map.erase(hdl);  // remove data vector when  connection is closed
   LOG(INFO) << "on_close, active connections: "<< data_map.size();

--
Gitblit v1.9.1