miner is no longer cached in miner factory if it is unknown
This commit is contained in:
@@ -269,8 +269,9 @@ class MinerFactory(metaclass=Singleton):
|
|||||||
elif "BMMiner" in api:
|
elif "BMMiner" in api:
|
||||||
miner = BMMiner(str(ip))
|
miner = BMMiner(str(ip))
|
||||||
|
|
||||||
# save the miner to the cache at its IP
|
# save the miner to the cache at its IP if its not unknown
|
||||||
self.miners[ip] = miner
|
if not isinstance(miner, UnknownMiner):
|
||||||
|
self.miners[ip] = miner
|
||||||
|
|
||||||
# return the miner
|
# return the miner
|
||||||
return miner
|
return miner
|
||||||
|
|||||||
Reference in New Issue
Block a user