Permalink
Browse files

sia: small mutex fix on errors

  • Loading branch information...
1 parent 2520f9a commit 1a51a84a9404a30ba7fb828854e3cc01bdca0fe3 @tpruvot committed Aug 10, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 ccminer.cpp
View
@@ -2603,9 +2603,9 @@ static void *longpoll_thread(void *userdata)
pthread_mutex_lock(&g_work_lock);
if (sia_work_decode(sia_header, &g_work)) {
g_work_time = time(NULL);
- pthread_mutex_unlock(&g_work_lock);
}
free(sia_header);
+ pthread_mutex_unlock(&g_work_lock);
}
continue;
}

0 comments on commit 1a51a84

Please sign in to comment.