Skip to content
Snippets Groups Projects
Commit d5ec7a80 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

ConnectionManager: allocate full buffer size

Change-Id: Ifdb26180460343fab1cf39a770d90d924f8ef263
parent 0e1bffa4
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,7 @@ struct DeviceInfo {
getConnectionList(tls::CertificateStore& certStore) const {
std::lock_guard<std::mutex> lk(mtx_);
std::vector<std::map<std::string, std::string>> ret;
ret.reserve(info.size());
ret.reserve(info.size() + connecting.size() + waiting.size());
for (auto& [id, ci] : info) {
std::lock_guard<std::mutex> lk(ci->mutex_);
ret.emplace_back(ci->getInfo(deviceId, id, certStore));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment