fixed abug with testbench not removing miners when there were 0 online

This commit is contained in:
UpstreamData
2022-05-26 13:48:49 -06:00
parent c35b30e949
commit 513dd2b981

View File

@@ -100,6 +100,11 @@ class TestbenchMiner:
async def install_start(self):
try:
if not await ping_miner(self.host, 80):
data = {
"IP": str(self.host),
"Count": Miners().get_count(),
}
await ConnectionManager().broadcast_json(data)
await self.add_to_output("Waiting for miner connection...")
miners = Miners()
miners -= self.host