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)
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue