0
0
Fork 0
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:
Jason Volk 2018-01-23 11:40:19 -08:00
parent 5d1790fb0d
commit 354cadb7dc

View file

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