mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +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())
|
||||
return;
|
||||
|
||||
for(auto &link : links)
|
||||
for(auto &tag : link.queue)
|
||||
tag.set_exception(e);
|
||||
close();
|
||||
log.error("Removing node(%p): during name resolution: %s",
|
||||
this,
|
||||
e.what());
|
||||
|
||||
nodes.erase(remote.hostname);
|
||||
const auto it(nodes.find(remote.hostname));
|
||||
assert(it != end(nodes));
|
||||
nodes.erase(it);
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
Loading…
Reference in a new issue