diff --git a/ircd/socket.cc b/ircd/socket.cc index 5ea73815c..7f4b137d7 100644 --- a/ircd/socket.cc +++ b/ircd/socket.cc @@ -207,12 +207,15 @@ ircd::socket::operator()(const milliseconds &timeout, if(unlikely(wp.expired())) { - log::warning("socket(%p): belated callback to handler...", (const void *)this); + log::warning("socket(%p): belated callback to handler...", this); return; } if(!handle_ready(ec)) + { + log::debug("socket(%p): %s", this, ec.message()); return; + } handler(ec); }); @@ -235,9 +238,6 @@ noexcept { using namespace boost::system::errc; - if(ec) - log::debug("socket(%p): %s", (const void *)this, ec.message().c_str()); - if(!timedout) timer.cancel();