Work around curentMenu being null, maybe.

(cherry picked from commit da49be0)
This commit is contained in:
Johannes Mockenhaupt 2017-08-31 11:17:59 +02:00
parent 4aac46f2bc
commit 6019323740
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -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;
}