0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

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 e33c4818c3
commit 2b2df0cb10

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