mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update websocket-server-2pass
This commit is contained in:
parent
ffb05b9ae7
commit
e02062443b
@ -180,7 +180,11 @@ void WebSocketServer::do_decoder(
|
||||
|
||||
void WebSocketServer::on_open(websocketpp::connection_hdl hdl) {
|
||||
scoped_lock guard(m_lock); // for threads safty
|
||||
check_and_clean_connection(); // remove closed connection
|
||||
try{
|
||||
check_and_clean_connection(); // remove closed connection
|
||||
}catch (std::exception const& e) {
|
||||
std::cerr << "Error: " << e.what() << std::endl;
|
||||
}
|
||||
|
||||
std::shared_ptr<FUNASR_MESSAGE> data_msg =
|
||||
std::make_shared<FUNASR_MESSAGE>(); // put a new data vector for new
|
||||
|
||||
Loading…
Reference in New Issue
Block a user