Work around curentMenu being null, maybe.
(cherry picked from commit da49be0)
This commit is contained in:
parent
4aac46f2bc
commit
6019323740
1 changed files with 6 additions and 0 deletions
|
@ -464,6 +464,12 @@ public class RuffyScripter {
|
|||
|
||||
// === pump ops ===
|
||||
public Menu getCurrentMenu() {
|
||||
// TODO workaround, supposedly fixed in latest ruffy?
|
||||
while (currentMenu == null) {
|
||||
log.error("currentMenu == null, waiting");
|
||||
SystemClock.sleep(500);
|
||||
waitForMenuUpdate();
|
||||
}
|
||||
return currentMenu;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue