From 2962dc83060d948656d0b1e52d1e67ad07afb4f5 Mon Sep 17 00:00:00 2001 From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com> Date: Thu, 15 Jun 2023 11:34:35 +0800 Subject: [PATCH] For cpp ws client long file not exited bug (#631) * fix cpp ws client not exit when finished problem * add count for multiple files --- funasr/runtime/websocket/funasr-ws-client.cpp | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/funasr/runtime/websocket/funasr-ws-client.cpp b/funasr/runtime/websocket/funasr-ws-client.cpp index 3c20fd8f3..4a3c7516d 100644 --- a/funasr/runtime/websocket/funasr-ws-client.cpp +++ b/funasr/runtime/websocket/funasr-ws-client.cpp @@ -106,7 +106,16 @@ class WebsocketClient { const std::string& payload = msg->get_payload(); switch (msg->get_opcode()) { case websocketpp::frame::opcode::text: - LOG(INFO)<<"on_message = " << payload; + total_num=total_num+1; + LOG(INFO)<