forked from External/mage
Added synchronization in client session - fixes NPE on exit.
This commit is contained in:
parent
44b48a3722
commit
bbb9e575eb
2 changed files with 33 additions and 2 deletions
|
|
@ -490,7 +490,8 @@ class UpdateTablesTask extends SwingWorker<Void, Collection<TableView>> {
|
|||
@Override
|
||||
protected Void doInBackground() throws Exception {
|
||||
while (!isCancelled()) {
|
||||
this.publish(session.getTables(roomId));
|
||||
Collection<TableView> tables = session.getTables(roomId);
|
||||
if (tables != null) this.publish(tables);
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue