From 3c631a9c12b0ef361c571a81f8a8fa2f6cd7b880 Mon Sep 17 00:00:00 2001
From: 嘉渊 <wangjiaming.wjm@alibaba-inc.com>
Date: 星期三, 14 六月 2023 20:49:47 +0800
Subject: [PATCH] update repo
---
funasr/runtime/websocket/funasr-ws-client.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/funasr/runtime/websocket/funasr-ws-client.cpp b/funasr/runtime/websocket/funasr-ws-client.cpp
index 2691b26..23c68cc 100644
--- a/funasr/runtime/websocket/funasr-ws-client.cpp
+++ b/funasr/runtime/websocket/funasr-ws-client.cpp
@@ -132,8 +132,14 @@
}
send_wav_data(wav_list[i], wav_ids[i]);
}
+ WaitABit();
+ m_client.close(m_hdl,websocketpp::close::status::going_away, "", ec);
+ if (ec) {
+ std::cout << "> Error closing connection " << ec.message() << std::endl;
+ }
//send_wav_data();
asio_thread.join();
+
}
// The open handler will signal that we are ready to start sending data
--
Gitblit v1.9.1