Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Switch from delay to retry_delay for games.
Browse files Browse the repository at this point in the history
  • Loading branch information
masterking32 committed Aug 15, 2024
1 parent 43c3652 commit 7e71df4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ def GetPlayGroundGameKey(self, promoData):
response = None

retryCount = 0
while retryCount < 10:
while retryCount < 15:
retryCount += 1
eventID = str(uuid.uuid4())

Expand All @@ -1048,11 +1048,11 @@ def GetPlayGroundGameKey(self, promoData):
response = self.HttpRequest(url, headers, "POST", 200, payload, True)

if response is None or not isinstance(response, dict):
time.sleep(promoData["delay"] + random.randint(1, 5))
time.sleep(promoData["retry_delay"] + random.randint(1, 5))
continue

if not response.get("hasCode", False):
time.sleep(promoData["delay"] + random.randint(1, 5))
time.sleep(promoData["retry_delay"] + random.randint(1, 5))
continue

break
Expand Down

0 comments on commit 7e71df4

Please sign in to comment.