Clean this up a bit.

This commit is contained in:
Jilles Tjoelker 2008-04-03 22:11:19 +02:00
parent 6336c1bf78
commit 0ee0482f98
1 changed files with 4 additions and 5 deletions

View File

@ -252,17 +252,16 @@ read_packet(rb_fde_t * F, void *data)
*/
length = rb_read(client_p->localClient->F, readBuf, READBUF_SIZE);
if(length <= 0)
if(length < 0)
{
if(length < 0 && rb_ignore_errno(errno))
{
if(rb_ignore_errno(errno))
rb_setselect(client_p->localClient->F,
RB_SELECT_READ, read_packet, client_p);
} else
else
error_exit_client(client_p, length);
return;
}
if(length == 0)
else if(length == 0)
{
error_exit_client(client_p, length);
return;