Add TODO.
This commit is contained in:
parent
09f834d990
commit
f4f91c0b85
|
@ -484,6 +484,9 @@ public class RuffyScripter {
|
||||||
// === pump ops ===
|
// === pump ops ===
|
||||||
public Menu getCurrentMenu() {
|
public Menu getCurrentMenu() {
|
||||||
long timeout = System.currentTimeMillis() + 5 * 1000;
|
long timeout = System.currentTimeMillis() + 5 * 1000;
|
||||||
|
// TODO this is probably due to a disconnect and rtDisconnect having nulled currentMenu.
|
||||||
|
// This here might just work, but needs a more controlled approach when implementing
|
||||||
|
// something to deal with connection loses
|
||||||
while (currentMenu == null) {
|
while (currentMenu == null) {
|
||||||
if (System.currentTimeMillis() > timeout) {
|
if (System.currentTimeMillis() > timeout) {
|
||||||
throw new CommandException().message("Unable to read current menu");
|
throw new CommandException().message("Unable to read current menu");
|
||||||
|
|
Loading…
Reference in a new issue