Browse Source

Bugfix: ztex: Avoid destroying libztex device in case other processors are still in use (fixes crash when 1.15y becomes unavailable)

Luke Dashjr 13 years ago
parent
commit
1451342ebd
1 changed files with 0 additions and 3 deletions
  1. 0 3
      driver-ztex.c

+ 0 - 3
driver-ztex.c

@@ -392,10 +392,7 @@ static void ztex_shutdown(struct thr_info *thr)
 		return;
 	
 	cgpu->device_ztex = NULL;
-	if (ztex->root->numberOfFpgas > 1 && ztex->fpgaNum == 0)
-		pthread_mutex_destroy(&ztex->mutex);
 	applog(LOG_DEBUG, "%s: shutdown", ztex->repr);
-	libztex_destroy_device(ztex);
 }
 
 static void ztex_disable(struct thr_info *thr)