fixed some bugs with the new "threaded" approach

This commit is contained in:
UpstreamData
2021-12-21 12:49:41 -07:00
parent df6858d718
commit e936a11477
3 changed files with 6 additions and 4 deletions

View File

@@ -39,6 +39,7 @@ 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 = list(filter(None, miner_ips))
print(f"Found {len(miner_ips)} connected miners...")
create_miners_tasks = []