0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-04 17:48:35 +02:00

ircd::server: Copy link pointers while iterating for open().

This commit is contained in:
Jason Volk 2018-05-07 23:09:06 -07:00
parent 7bf9736a23
commit 9a3bda06af

View file

@ -890,8 +890,10 @@ try
if(op_fini)
return;
for(auto &link : links)
link.open(open_opts);
std::vector<link *> links(this->links.size());
pointers(this->links, links);
for(const auto &link : links)
link->open(open_opts);
}
catch(const std::exception &e)
{