Skip to content

Commit

Permalink
Fix JSON-RPC 2.0 tcp sleep bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjones committed May 24, 2014
1 parent 1070438 commit 7ccf6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ static void *miner_thread(void *userdata) {
int rc;

if (have_stratum) {
while (time(NULL ) >= g_work_time + 120)
while (!jsonrpc_2 && time(NULL) >= g_work_time + 120)
sleep(1);
pthread_mutex_lock(&g_work_lock);
if ((*nonceptr) >= end_nonce
Expand Down

0 comments on commit 7ccf6ba

Please sign in to comment.