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:
parent
7bf9736a23
commit
9a3bda06af
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue