mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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:
parent
7d19db88b5
commit
bac3bedc9f
@ -285,11 +285,11 @@ bool InspSocket::FlushWriteBuffer()
|
|||||||
log(DEBUG,"Write error on socket: %s",strerror(errno));
|
log(DEBUG,"Write error on socket: %s",strerror(errno));
|
||||||
this->OnError(I_ERR_WRITE);
|
this->OnError(I_ERR_WRITE);
|
||||||
this->state = I_ERROR;
|
this->state = I_ERROR;
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InspSocket::Timeout(time_t current)
|
bool InspSocket::Timeout(time_t current)
|
||||||
@ -345,7 +345,7 @@ bool InspSocket::Poll()
|
|||||||
* Both FlushWriteBuffer AND the return result of OnDataReady must
|
* Both FlushWriteBuffer AND the return result of OnDataReady must
|
||||||
* return true for this to be ok.
|
* return true for this to be ok.
|
||||||
*/
|
*/
|
||||||
return (n && this->FlushWriteBuffer());
|
return (n && !this->FlushWriteBuffer());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -1 +1 @@
|
|||||||
echo 3517
|
echo 3519
|
||||||
|
Loading…
x
Reference in New Issue
Block a user