Skip to content

Commit

Permalink
fix extra sleeping if the tries is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bishoy-at-pieces authored Nov 5, 2024
1 parent e53d4f5 commit 7f22fdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _pieces_lib/pieces_os_client/wrapper/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ def is_pieces_running(self,maxium_retries=1) -> bool:
if response.status == 200:
return True
except:
time.sleep(1)
if maxium_retries != 1:
time.sleep(1)
return False

def _check_startup(self):
Expand Down

0 comments on commit 7f22fdd

Please sign in to comment.