forked from External/mage
* Some minor changes to sleep command (fixes #2992).
This commit is contained in:
parent
4c35650b2b
commit
5a072ea760
12 changed files with 133 additions and 140 deletions
|
|
@ -1450,7 +1450,7 @@ class UpdateTablesTask extends SwingWorker<Void, Collection<TableView>> {
|
|||
if (!tables.isEmpty()) {
|
||||
this.publish(tables);
|
||||
}
|
||||
Thread.sleep(3000);
|
||||
TimeUnit.SECONDS.sleep(3);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
@ -1494,7 +1494,7 @@ class UpdatePlayersTask extends SwingWorker<Void, Collection<RoomUsersView>> {
|
|||
protected Void doInBackground() throws Exception {
|
||||
while (!isCancelled()) {
|
||||
this.publish(SessionHandler.getRoomUsers(roomId));
|
||||
Thread.sleep(3000);
|
||||
TimeUnit.SECONDS.sleep(3);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
@ -1636,7 +1636,7 @@ class UpdateMatchesTask extends SwingWorker<Void, Collection<MatchView>> {
|
|||
if (!matches.isEmpty()) {
|
||||
this.publish(matches);
|
||||
}
|
||||
Thread.sleep(10000);
|
||||
TimeUnit.SECONDS.sleep(10);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue