Browse Source

Avoid automatic rescans when hotplug is disabled

Luke Dashjr 12 years ago
parent
commit
e25580401d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      miner.c

+ 4 - 1
miner.c

@@ -10858,6 +10858,7 @@ void *probe_device_thread(void *p)
 			if (_probe_device_internal(info, dname, dnamelen))
 				return NULL;
 			else
+			if (opt_hotplug)
 				bfg_need_detect_rescan = true;
 		}
 	}
@@ -10896,6 +10897,7 @@ void *probe_device_thread(void *p)
 				if (drv->lowl_probe(info))
 					return NULL;
 				else
+				if (opt_hotplug)
 					bfg_need_detect_rescan = true;
 			}
 		}
@@ -10927,7 +10929,8 @@ void *probe_device_thread(void *p)
 						if (drv->lowl_probe(info))
 							return NULL;
 					}
-					bfg_need_detect_rescan = true;
+					if (opt_hotplug)
+						bfg_need_detect_rescan = true;
 					break;
 				}
 			}