Skip to content

Commit

Permalink
close() suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith committed Apr 2, 2022
1 parent 66422bd commit 4781302
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ public void run() {
final QueryTable localTable = tableRef.get();
if (localTable != null) {
localTable.notifyListenersOnError(e, null);
} else {
close();
}
}
}
Expand Down Expand Up @@ -349,6 +351,8 @@ private void doRefresh() {
localTable.notifyListeners(new TableUpdateImpl(RowSetFactory.flat(newSize),
RowSetFactory.flat(oldSize), RowSetFactory.empty(),
RowSetShiftData.EMPTY, ModifiedColumnSet.EMPTY));
} else {
close();
}
}

Expand Down

0 comments on commit 4781302

Please sign in to comment.