Browse Source

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

Con Kolivas 13 years ago
parent
commit
903c666326
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.c

+ 1 - 1
util.c

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