mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Display which longpoll failed and don't free the ram for lp_url since it belongs to the pool hdr path.
This commit is contained in:
parent
6f741597f8
commit
7c6dfaccf1
5
main.c
5
main.c
@ -3860,10 +3860,10 @@ static void *longpoll_thread(void *userdata)
|
|||||||
if (failures++ < 10) {
|
if (failures++ < 10) {
|
||||||
sleep(30);
|
sleep(30);
|
||||||
applog(LOG_WARNING,
|
applog(LOG_WARNING,
|
||||||
"longpoll failed, sleeping for 30s");
|
"longpoll failed for %s, sleeping for 30s", lp_url);
|
||||||
} else {
|
} else {
|
||||||
applog(LOG_ERR,
|
applog(LOG_ERR,
|
||||||
"longpoll failed, ending thread");
|
"longpoll failed for %s, ending thread", lp_url);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3871,7 +3871,6 @@ static void *longpoll_thread(void *userdata)
|
|||||||
|
|
||||||
out:
|
out:
|
||||||
have_longpoll = false;
|
have_longpoll = false;
|
||||||
free(lp_url);
|
|
||||||
tq_freeze(mythr->q);
|
tq_freeze(mythr->q);
|
||||||
if (curl)
|
if (curl)
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user