added cache clearing on new network scan

This commit is contained in:
UpstreamData
2021-10-21 14:29:14 -06:00
parent 1ca39260b4
commit b11f992b43
2 changed files with 4 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ class MinerFactory:
self.miners[ip] = miner
return miner
def clear_cached_miners(self):
self.miners = {}
@staticmethod
async def _get_version_data(ip: ipaddress.ip_address) -> dict or None:
for i in range(3):