1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Restarting cgminer leads to a socket that can't be bound for 60 seconds, so increase the interval that API binding waits to 30 seconds to minimise the number of times it will retry, spamming the logs.

This commit is contained in:
Con Kolivas 2012-04-28 13:41:18 +10:00
parent 972860c0af
commit 06bf44b06f

7
api.c
View File

@ -2246,11 +2246,10 @@ void api(int api_thr_id)
if ((time(NULL) - bindstart) > 61) if ((time(NULL) - bindstart) > 61)
break; break;
else { else {
applog(LOG_WARNING, "API bind to port %d failed - trying again in 15sec", port); applog(LOG_WARNING, "API bind to port %d failed - trying again in 30sec", port);
sleep(15); sleep(30);
} }
} } else
else
bound = 1; bound = 1;
} }