summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-10 15:39:02 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-10 15:39:02 +0100
commit38bc192dd6d289b8632349c67ef2cafdca3b4159 (patch)
tree0bd1ba4d31c30a4919fd9aa6904d63e05c22d653 /src/inspsocket.cpp
parent682ab97e473b5325f5c5e0d0747a44df1aa33b9d (diff)
Remove pointless fd == INT_MAX check from StreamSocket::DoWrite()
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp2
1 files changed, 1 insertions, 1 deletions
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;