* Some minor changes to sleep command.

This commit is contained in:
LevelX2 2017-04-02 11:48:05 +02:00
parent 5a072ea760
commit 2446abcc98
6 changed files with 102 additions and 100 deletions

View file

@ -93,7 +93,7 @@ public class MageUI {
public void doClick(MageComponents name, int waitBeforeClick) throws InterruptedException {
final JButton j = getButton(name);
Thread.sleep(waitBeforeClick);
TimeUnit.MILLISECONDS.sleep(waitBeforeClick);
while (!j.isEnabled()) {
TimeUnit.MILLISECONDS.sleep(10);
}