Skip to content

Commit 8be629a

Browse files
committed
Opt: limit Event shop trials to avoid endless run
1 parent 1f9f6f5 commit 8be629a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

module/shop/shop_reward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def run_once(self):
3434
self.device.click_record_clear()
3535
self.shop_tab_250814.set(main=self, bottom=1)
3636
if self.shop_tab_250814.get_active(main=self) == 2:
37-
while 1:
37+
for _ in range(7): # Try event shop up to 7 times, should be enough
3838
try:
3939
EventShop(self.config, self.device).run()
4040
break

0 commit comments

Comments
 (0)