summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 17:37:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 17:37:17 +0000
commitbac3bedc9faae28b71ace255b0e82efc62dadfb0 (patch)
tree24861a48f7fff5bdc5b2cd57218d0d909c504419 /src
parent7d19db88b580f0c488b3808aeb812d0d7403b25d (diff)
true and false transposed in new code
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3520 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/socket.cpp6
-rwxr-xr-xsrc/svn-rev.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index d28122b73..6ea91a83f 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -285,11 +285,11 @@ bool InspSocket::FlushWriteBuffer()
log(DEBUG,"Write error on socket: %s",strerror(errno));
this->OnError(I_ERR_WRITE);
this->state = I_ERROR;
- return false;
+ return true;
}
}
}
- return true;
+ return false;
}
bool InspSocket::Timeout(time_t current)
@@ -345,7 +345,7 @@ bool InspSocket::Poll()
* Both FlushWriteBuffer AND the return result of OnDataReady must
* return true for this to be ok.
*/
- return (n && this->FlushWriteBuffer());
+ return (n && !this->FlushWriteBuffer());
break;
default:
break;
diff --git a/src/svn-rev.sh b/src/svn-rev.sh
index 5fa9d51df..c08b53410 100755
--- a/src/svn-rev.sh
+++ b/src/svn-rev.sh
@@ -1 +1 @@
-echo 3517
+echo 3519