zhaomingwork
2023-06-14 dde24214fecb1178f5c130f09ad162a1e5847877
fix cpp ws client not exit when finished problem (#628)

1个文件已修改
6 ■■■■■ 已修改文件
funasr/runtime/websocket/funasr-ws-client.cpp 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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