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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user