0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd::server: Handle link open error.

This commit is contained in:
Jason Volk 2018-01-17 02:34:22 -08:00
parent 5a51638db8
commit 4727e93f8a

View file

@ -444,6 +444,9 @@ catch(const std::exception &e)
&link,
string(remote),
e.what());
disperse(link);
link.close(net::dc::RST);
}
void
@ -474,6 +477,7 @@ ircd::server::node::handle_error(link &link,
try
{
cancel_committed(link, eptr);
disperse(link);
link.close(net::dc::RST);
std::rethrow_exception(eptr);
}