Skip to content

Commit

Permalink
bug: fix vnish shutting-down handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rowan committed Apr 7, 2024
1 parent 445d621 commit 65c7f2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyasic/miners/backends/vnish.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,10 @@ async def _is_mining(self, web_summary: dict = None) -> Optional[bool]:

if web_summary is not None:
try:
is_mining = (
not web_summary["miner"]["miner_status"]["miner_state"] == "stopped"
)
is_mining = not web_summary["miner"]["miner_status"]["miner_state"] in [
"stopped",
"shutting-down",
]
return is_mining
except LookupError:
pass
Expand Down

0 comments on commit 65c7f2f

Please sign in to comment.