1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-10 14:57:53 +00:00

sia: small mutex fix on errors

This commit is contained in:
Tanguy Pruvot 2016-08-10 14:48:19 +02:00
parent 2520f9a388
commit 1a51a84a94

View File

@ -2603,9 +2603,9 @@ longpoll_retry:
pthread_mutex_lock(&g_work_lock); pthread_mutex_lock(&g_work_lock);
if (sia_work_decode(sia_header, &g_work)) { if (sia_work_decode(sia_header, &g_work)) {
g_work_time = time(NULL); g_work_time = time(NULL);
pthread_mutex_unlock(&g_work_lock);
} }
free(sia_header); free(sia_header);
pthread_mutex_unlock(&g_work_lock);
} }
continue; continue;
} }