0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-03 22:28:52 +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) if(op_fini)
return; return;
for(auto &link : links) std::vector<link *> links(this->links.size());
link.open(open_opts); pointers(this->links, links);
for(const auto &link : links)
link->open(open_opts);
} }
catch(const std::exception &e) catch(const std::exception &e)
{ {