Permalink
Browse files

Fix JSON-RPC 2.0 tcp sleep bug

  • Loading branch information...
1 parent 1070438 commit 7ccf6ba5cee1d7ed6744e5c35aa66eedf49a6fe6 @lucasjones lucasjones committed May 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 cpu-miner.c
View
@@ -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

0 comments on commit 7ccf6ba

Please sign in to comment.