]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove pointless fd == INT_MAX check from StreamSocket::DoWrite()
authorAttila Molnar <attilamolnar@hush.com>
Sat, 10 Jan 2015 14:39:02 +0000 (15:39 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Sat, 10 Jan 2015 14:39:02 +0000 (15:39 +0100)
src/inspsocket.cpp

index d3ee7538b6e70102b32fae654b8f883a711aaea2..645947f56e925c2a37157e9f76932d3c4f96d416 100644 (file)
@@ -219,7 +219,7 @@ void StreamSocket::DoWrite()
 {
        if (sendq.empty())
                return;
 {
        if (sendq.empty())
                return;
-       if (!error.empty() || fd < 0 || fd == INT_MAX)
+       if (!error.empty() || fd < 0)
        {
                ServerInstance->Logs->Log("SOCKET", LOG_DEBUG, "DoWrite on errored or closed socket");
                return;
        {
                ServerInstance->Logs->Log("SOCKET", LOG_DEBUG, "DoWrite on errored or closed socket");
                return;