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:
parent
5a51638db8
commit
4727e93f8a
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue