mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::net: Close the socket on a handler unexpected.
This commit is contained in:
parent
5d1790fb0d
commit
354cadb7dc
1 changed files with 2 additions and 0 deletions
|
@ -1939,6 +1939,8 @@ catch(const std::exception &e)
|
||||||
log.critical("socket(%p) async handler: unhandled exception: %s",
|
log.critical("socket(%p) async handler: unhandled exception: %s",
|
||||||
this,
|
this,
|
||||||
e.what());
|
e.what());
|
||||||
|
|
||||||
|
close(*this, dc::RST, close_ignore);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue