true and false transposed in new code

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3520 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-03-07 17:37:17 +00:00
parent 7d19db88b5
commit bac3bedc9f
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -1 +1 @@
echo 3517
echo 3519