1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Recheck select succeeds on EWOULDBLOCK for stratum.

This commit is contained in:
Con Kolivas 2013-05-09 10:41:27 +10:00
parent 6e969e93e2
commit 43bcccf868

2
util.c
View File

@ -1099,7 +1099,7 @@ char *recv_line(struct pool *pool)
break;
}
if (n < 0) {
if (!sock_blocks()) {
if (!sock_blocks() || !socket_full(pool, false)) {
ret = RECV_RECVFAIL;
break;
}