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