bug: fix vnish shutting-down handling.
This commit is contained in:
@@ -225,9 +225,10 @@ class VNish(BMMiner):
|
|||||||
|
|
||||||
if web_summary is not None:
|
if web_summary is not None:
|
||||||
try:
|
try:
|
||||||
is_mining = (
|
is_mining = not web_summary["miner"]["miner_status"]["miner_state"] in [
|
||||||
not web_summary["miner"]["miner_status"]["miner_state"] == "stopped"
|
"stopped",
|
||||||
)
|
"shutting-down",
|
||||||
|
]
|
||||||
return is_mining
|
return is_mining
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user