Fix a case where an EOF could be interpreted a previous errno (often ignorable).

This commit is contained in:
Jilles Tjoelker 2008-04-03 21:43:54 +02:00
parent 72745c2b88
commit 24914876eb
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ read_packet(rb_fde_t * F, void *data)
if(length <= 0)
{
if(rb_ignore_errno(errno))
if(length < 0 && rb_ignore_errno(errno))
{
rb_setselect(client_p->localClient->F,
RB_SELECT_READ, read_packet, client_p);