From 24de9b8655eb50cf304bf01f40e7a14164225dd2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 8 Dec 2012 21:23:33 +1100 Subject: [PATCH] Do not try to clean up twice if kill message is given. --- cgminer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cgminer.c b/cgminer.c index 7bebdf09..4a14fb36 100644 --- a/cgminer.c +++ b/cgminer.c @@ -6857,9 +6857,7 @@ begin_bench: pthread_cond_wait(&kill_cond, &kill_lock); mutex_unlock(&kill_lock); - applog(LOG_INFO, "workio thread dead, exiting."); - - clean_up(); + applog(LOG_INFO, "Given kill message, exiting."); /* Not really necessary, but let's clean this up too anyway */ HASH_ITER(hh, staged_work, work, tmpwork) {