Browse Source

Do not try to clean up twice if kill message is given.

Con Kolivas 13 years ago
parent
commit
24de9b8655
1 changed files with 1 additions and 3 deletions
  1. 1 3
      cgminer.c

+ 1 - 3
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) {