1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Fix logic fail on partial writes with stratum send that was leading to corrupt message submissions.

This commit is contained in:
Con Kolivas 2013-02-07 16:38:11 +11:00
parent 3804850141
commit 903c666326

2
util.c
View File

@ -907,7 +907,7 @@ static bool __stratum_send(struct pool *pool, char *s, ssize_t len)
sent = 0; sent = 0;
} }
ssent += sent; ssent += sent;
len -= ssent; len -= sent;
} }
pool->cgminer_pool_stats.times_sent++; pool->cgminer_pool_stats.times_sent++;