fix
This commit is contained in:
@@ -58,7 +58,7 @@ void packet_client::close_all() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
clients_.clear();
|
clients_.clear();
|
||||||
io_context_ = boost::asio::io_context{};
|
io_context_.restart();
|
||||||
unique_id_ = utils::create_uuid_string();
|
unique_id_ = utils::create_uuid_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ void packet_client::connect(client &cli) {
|
|||||||
}
|
}
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
utils::error::raise_error(function_name, e, "connection handshake failed");
|
utils::error::raise_error(function_name, e, "connection handshake failed");
|
||||||
resolve_results_.clear();
|
resolve_results_ = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user