diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 17:26:17 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 17:26:17 +0000 |
commit | 19cfbc8c3d9ce7939d30aeb4b01b17f360ad2131 (patch) | |
tree | 5bab6a2b3dbae7b048003ccc690447b3302daa3b /src/socket.cpp | |
parent | a03731468e5112c4147b3a5f2fe7811c679957a2 (diff) |
Bad brain bad
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3832 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-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; |