Skip to content

Commit

Permalink
FIX Infinite loop when getting promo code
Browse files Browse the repository at this point in the history
When a promo code from a game cannot be acquired in "max_attempts" times, loop restarts and bot tries to get promo code from the same game. Fix provided here ensures that when bot exhausts all attempts, it skips to another game
  • Loading branch information
Delinester committed Aug 31, 2024
1 parent c5f8d80 commit 56fa0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/core/tapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ async def run(self, proxy: str | None) -> None:
proxy=proxy)

if not promo_code:
continue
break

profile_data, promo_state = await apply_promo(http_client=http_client,
promo_code=promo_code)
Expand Down

0 comments on commit 56fa0a6

Please sign in to comment.