1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 17:39:25 +08:00

Add: timeout setting of enabling gg

This commit is contained in:
LA-DI-DA
2023-10-12 22:35:54 +08:00
parent 97783288c6
commit 4caa2e2aec
10 changed files with 29 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ class GGHandler:
# GGU2(config=self.config, device=self.device) \
# .set_on(factor=self.factor)
self.handle_u2_restart()
success = timeout(GGU2(config=self.config, device=self.device).set_on, timeout_sec=120, factor=self.factor)
success = timeout(GGU2(config=self.config, device=self.device).set_on, timeout_sec=deep_get(self.config.data, "GameManager.GGHandler.Timeout"), factor=self.factor)
if success:
from module.exception import GameStuckError
raise GameStuckError