diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-10 15:39:02 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-10 15:39:02 +0100 |
commit | 38bc192dd6d289b8632349c67ef2cafdca3b4159 (patch) | |
tree | 0bd1ba4d31c30a4919fd9aa6904d63e05c22d653 /src | |
parent | 682ab97e473b5325f5c5e0d0747a44df1aa33b9d (diff) |
Remove pointless fd == INT_MAX check from StreamSocket::DoWrite()
Diffstat (limited to 'src')
-rw-r--r-- | src/inspsocket.cpp | 2 |
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; |