1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 14:58:01 +00:00

Use sock_blocks in api.c

This commit is contained in:
Con Kolivas 2013-04-24 23:08:22 +10:00
parent af60a19ddd
commit 412ef440b3

2
api.c
View File

@ -3481,7 +3481,7 @@ static void send_result(struct io_data *io_data, SOCKETTYPE c, bool isjson)
n = send(c, buf, tosend, 0);
if (SOCKETFAIL(n)) {
if (errno == EAGAIN || errno == EWOULDBLOCK)
if (sock_blocks())
continue;
applog(LOG_WARNING, "API: send (%d) failed: %s", tosend, SOCKERRMSG);