0
0
Fork 0
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:
Jason Volk 2018-02-21 17:44:08 -08:00
parent 52cbf0fc70
commit f235fc155e

View file

@ -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