update websocket-server-2pass

This commit is contained in:
雾聪 2023-08-10 19:05:33 +08:00
parent 800b28152b
commit a8126f7207

View File

@ -152,8 +152,10 @@ void WebSocketServer::do_decoder(
} catch (std::exception const& e) {
LOG(ERROR) << e.what();
}
for (auto& vec : punc_cache) {
vec.clear();
if(punc_cache.size()>0){
for (auto& vec : punc_cache) {
vec.clear();
}
}
if (Result) {
websocketpp::lib::error_code ec;