mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 08:54:02 +01:00
Fix a case where an EOF could be interpreted a previous errno (often ignorable).
This commit is contained in:
parent
e33c4818c3
commit
2b2df0cb10
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue