mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd::server: Close and remove node on name resolution error.
This commit is contained in:
parent
52cbf0fc70
commit
f235fc155e
1 changed files with 7 additions and 4 deletions
|
@ -713,11 +713,14 @@ catch(const std::exception &e)
|
||||||
if(wp.expired())
|
if(wp.expired())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for(auto &link : links)
|
close();
|
||||||
for(auto &tag : link.queue)
|
log.error("Removing node(%p): during name resolution: %s",
|
||||||
tag.set_exception(e);
|
this,
|
||||||
|
e.what());
|
||||||
|
|
||||||
nodes.erase(remote.hostname);
|
const auto it(nodes.find(remote.hostname));
|
||||||
|
assert(it != end(nodes));
|
||||||
|
nodes.erase(it);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
|
|
Loading…
Reference in a new issue