0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

ircd::net: Relax this assertion with a log warning.

This commit is contained in:
Jason Volk 2018-09-24 22:01:25 -07:00
parent 2f3c461664
commit ca8082d01b

View file

@ -2013,9 +2013,18 @@ ircd::net::socket::cancel()
noexcept
{
cancel_timeout();
boost::system::error_code ec;
sd.cancel(ec);
assert(!ec);
if(likely(ec == boost::system::errc::success))
return;
log::dwarning
{
log, "socket(%p) cancel :%s",
(const void *)this,
string(ec)
};
}
void