Skip to content

Commit

Permalink
Re-authentication timeout adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjones committed May 15, 2014
1 parent 9c8bddd commit d67be46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ json_t *json_rpc2_call_recur(CURL *curl, const char *url,
}
const char *mes = json_string_value(message);
if(!strcmp(mes, "Unauthenticated")) {
applog(LOG_WARNING, "Re-authenticating in 500ms");
sleep(1);
applog(LOG_WARNING, "Authenticating and retrying..");
rpc2_login(curl);
sleep(1);
return json_rpc2_call_recur(curl, url, userpass, rpc_req,
curl_err, flags, recur + 1);
} else if(!strcmp(mes, "Low difficulty share") || !strcmp(mes, "Block expired") || !strcmp(mes, "Invalid job id")) {
Expand Down

0 comments on commit d67be46

Please sign in to comment.