fix bug with isReadyToWrite
This commit is contained in:
@ -205,14 +205,14 @@ namespace ix
|
||||
// Wait with a 10ms timeout until the socket is ready to write.
|
||||
// This way we are not busy looping
|
||||
PollResultType result = _socket->isReadyToWrite(10);
|
||||
|
||||
if (result == PollResultType_Error)
|
||||
{
|
||||
_socket->close();
|
||||
setReadyState(CLOSED);
|
||||
break;
|
||||
}
|
||||
// FIXME: why are we not getting PollResultType_ReadyForWrite ??
|
||||
else // if (result == PollResultType_ReadyForWrite)
|
||||
else if (result == PollResultType_ReadyForWrite)
|
||||
{
|
||||
sendOnSocket();
|
||||
}
|
||||
|
Reference in New Issue
Block a user