Browse Source

Merge commit '78e5ab5' into bfgminer-3.5.x

Luke Dashjr 12 years ago
parent
commit
9d6b10adc3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver-nanofury.c

+ 2 - 1
driver-nanofury.c

@@ -329,7 +329,8 @@ void nanofury_shutdown(struct thr_info * const thr)
 {
 	struct mcp2210_device * const mcp = thr->cgpu_data;
 	
-	nanofury_device_off(mcp);
+	if (mcp)
+		nanofury_device_off(mcp);
 }
 
 struct device_drv nanofury_drv = {