Browse Source

Ignore the submit_fail flag when deciding whether to recruit more curls or not since we have upper bounds on how many curls can be recruited, this test is redundant and can lead to problems.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
61df3013a8
  1. 2
      cgminer.c

2
cgminer.c

@ -2227,7 +2227,7 @@ retry:
if (!pool->curls) if (!pool->curls)
recruit_curl(pool); recruit_curl(pool);
else if (list_empty(&pool->curlring)) { else if (list_empty(&pool->curlring)) {
if (pool->submit_fail || pool->curls >= curl_limit) { if (pool->curls >= curl_limit) {
pthread_cond_wait(&pool->cr_cond, &pool->pool_lock); pthread_cond_wait(&pool->cr_cond, &pool->pool_lock);
goto retry; goto retry;
} else } else

Loading…
Cancel
Save