RuffyScripter.isConnected: one millisecond is a long time.
(cherry picked from commit 796b9a0)
This commit is contained in:
parent
3ac63a980c
commit
7996acceb7
|
@ -187,7 +187,7 @@ public class RuffyScripter implements RuffyCommands {
|
||||||
if (!ruffyService.isConnected()) {
|
if (!ruffyService.isConnected()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (System.currentTimeMillis() - menuLastUpdated > 500) {
|
if (System.currentTimeMillis() - menuLastUpdated >= 500) {
|
||||||
waitForScreenUpdate();
|
waitForScreenUpdate();
|
||||||
}
|
}
|
||||||
return System.currentTimeMillis() - menuLastUpdated < 500;
|
return System.currentTimeMillis() - menuLastUpdated < 500;
|
||||||
|
|
Loading…
Reference in a new issue