RuffyScripter.isConnected: one millisecond is a long time.

(cherry picked from commit 796b9a0)
This commit is contained in:
Johannes Mockenhaupt 2017-12-17 18:49:52 +01:00
parent 3ac63a980c
commit 7996acceb7
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

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