fixed a bug with configuring and scanning

This commit is contained in:
UpstreamData
2021-12-21 16:20:29 -07:00
parent 475fe1769d
commit 8ea97d9cfe
2 changed files with 8 additions and 7 deletions

View File

@@ -39,7 +39,8 @@ class MinerNetwork:
miner_ips_scan = await asyncio.gather(*scan_tasks)
miner_ips.extend(miner_ips_scan)
scan_tasks = []
await asyncio.gather(*scan_tasks)
miner_ips_scan = await asyncio.gather(*scan_tasks)
miner_ips.extend(miner_ips_scan)
miner_ips = list(filter(None, miner_ips))
print(f"Found {len(miner_ips)} connected miners...")
create_miners_tasks = []