diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index b7d102647..df018bb47 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -307,7 +307,7 @@ bool InspSocket::FlushWriteBuffer() } } } - return (fd > -1); + return (fd < 0); } bool InspSocket::Timeout(time_t current) @@ -381,7 +381,7 @@ bool InspSocket::Poll() * Both FlushWriteBuffer AND the return result of OnDataReady must * return true for this to be ok. */ - if (!this->FlushWriteBuffer()) + if (this->FlushWriteBuffer()) return false; return n; break; |