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:
parent
2f3c461664
commit
ca8082d01b
1 changed files with 10 additions and 1 deletions
11
ircd/net.cc
11
ircd/net.cc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue