Browse Source

Only show longpoll warning once when it has failed.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
f0985f9978
  1. 5
      cgminer.c

5
cgminer.c

@ -3990,8 +3990,9 @@ retry_pool:
if (end.tv_sec - start.tv_sec > 30) if (end.tv_sec - start.tv_sec > 30)
continue; continue;
if (opt_retries == -1 || failures++ < opt_retries) { if (opt_retries == -1 || failures++ < opt_retries) {
applog(LOG_WARNING, if (failures == 1)
"longpoll failed for %s, sleeping for 30s", pool->lp_url); applog(LOG_WARNING,
"longpoll failed for %s, retrying every 30s", pool->lp_url);
sleep(30); sleep(30);
} else { } else {
applog(LOG_ERR, applog(LOG_ERR,

Loading…
Cancel
Save