mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Do not try to clean up twice if kill message is given.
This commit is contained in:
parent
84b44fd852
commit
24de9b8655
@ -6857,9 +6857,7 @@ begin_bench:
|
|||||||
pthread_cond_wait(&kill_cond, &kill_lock);
|
pthread_cond_wait(&kill_cond, &kill_lock);
|
||||||
mutex_unlock(&kill_lock);
|
mutex_unlock(&kill_lock);
|
||||||
|
|
||||||
applog(LOG_INFO, "workio thread dead, exiting.");
|
applog(LOG_INFO, "Given kill message, exiting.");
|
||||||
|
|
||||||
clean_up();
|
|
||||||
|
|
||||||
/* Not really necessary, but let's clean this up too anyway */
|
/* Not really necessary, but let's clean this up too anyway */
|
||||||
HASH_ITER(hh, staged_work, work, tmpwork) {
|
HASH_ITER(hh, staged_work, work, tmpwork) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user