Skip to content

Commit 7ccf6ba

Browse files
committed
Fix JSON-RPC 2.0 tcp sleep bug
1 parent 1070438 commit 7ccf6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpu-miner.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ static void *miner_thread(void *userdata) {
10531053
int rc;
10541054

10551055
if (have_stratum) {
1056-
while (time(NULL ) >= g_work_time + 120)
1056+
while (!jsonrpc_2 && time(NULL) >= g_work_time + 120)
10571057
sleep(1);
10581058
pthread_mutex_lock(&g_work_lock);
10591059
if ((*nonceptr) >= end_nonce

0 commit comments

Comments
 (0)