From 38bc192dd6d289b8632349c67ef2cafdca3b4159 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 10 Jan 2015 15:39:02 +0100 Subject: Remove pointless fd == INT_MAX check from StreamSocket::DoWrite() --- src/inspsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index d3ee7538b..645947f56 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -219,7 +219,7 @@ void StreamSocket::DoWrite() { 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; -- cgit v1.2.3