fixed abug with testbench not removing miners when there were 0 online
This commit is contained in:
@@ -100,6 +100,11 @@ class TestbenchMiner:
|
|||||||
async def install_start(self):
|
async def install_start(self):
|
||||||
try:
|
try:
|
||||||
if not await ping_miner(self.host, 80):
|
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...")
|
await self.add_to_output("Waiting for miner connection...")
|
||||||
miners = Miners()
|
miners = Miners()
|
||||||
miners -= self.host
|
miners -= self.host
|
||||||
|
|||||||
Reference in New Issue
Block a user