Fix return value on timeout
This commit is contained in:
parent
6058284b37
commit
1007bad476
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ ssize_t ethsock_recv(struct ethsock *sock, void *buf, size_t len)
|
||||||
perror("select");
|
perror("select");
|
||||||
return -1;
|
return -1;
|
||||||
} else if (status == 0) {
|
} else if (status == 0) {
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue