From 19cfbc8c3d9ce7939d30aeb4b01b17f360ad2131 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 4 Apr 2006 17:26:17 +0000 Subject: Bad brain bad git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3832 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3