]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/listensocket.cpp
Replaced vsnprintf with VAFORMAT pretty much everywhere.
[user/henk/code/inspircd.git] / src / listensocket.cpp
index 2f25c549361f9acdef55cd58bc03fa94df97bc4b..8ac8babf3a5023580ab77af1acc192e38c49ff89 100644 (file)
@@ -75,7 +75,8 @@ ListenSocket::~ListenSocket()
        {
                ServerInstance->SE->DelFd(this);
                ServerInstance->Logs->Log("SOCKET", LOG_DEBUG,"Shut down listener on fd %d", this->fd);
-               if (ServerInstance->SE->Shutdown(this, 2) || ServerInstance->SE->Close(this))
+               ServerInstance->SE->Shutdown(this, 2);
+               if (ServerInstance->SE->Close(this) != 0)
                        ServerInstance->Logs->Log("SOCKET", LOG_DEBUG,"Failed to cancel listener: %s", strerror(errno));
                this->fd = -1;
        }