1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Re-check for a longpoll supporting pool every 30 seconds if none is found initially.

This commit is contained in:
Con Kolivas 2012-02-19 21:28:23 +11:00
parent b217cbee0d
commit f85b85d244
2 changed files with 6 additions and 3 deletions

View File

@ -3517,10 +3517,12 @@ static void *longpoll_thread(void *userdata)
tq_pop(mythr->q, NULL);
pool = select_longpoll_pool();
new_longpoll:
if (!pool) {
if (!pool)
applog(LOG_WARNING, "No long-poll found on any pool server");
goto out;
new_longpoll:
while (!pool) {
sleep(30);
pool = select_longpoll_pool();
}
hdr_path = pool->hdr_path;

View File

@ -536,6 +536,7 @@ struct pool {
bool submit_old;
char *hdr_path;
char *lp_url;
unsigned int getwork_requested;
unsigned int stale_shares;