fixed connection table update on status filter change

This commit is contained in:
anhefti 2020-10-07 15:09:06 +02:00
parent 606de67aa2
commit 3b77f95849

View file

@ -320,12 +320,15 @@ public final class ClientConnectionTable {
if (!this.toDelete.isEmpty()) { if (!this.toDelete.isEmpty()) {
this.toDelete.forEach(id -> { this.toDelete.forEach(id -> {
final UpdatableTableItem item = this.tableMapping.remove(id); final UpdatableTableItem item = this.tableMapping.remove(id);
final List<Long> list = this.sessionIds.get(item.connectionData.clientConnection.userSessionId); if (item != null) {
if (list != null) { final List<Long> list = this.sessionIds.get(item.connectionData.clientConnection.userSessionId);
list.remove(id); if (list != null) {
list.remove(id);
}
} }
}); });
this.statusFilterChanged = false; this.statusFilterChanged = false;
this.toDelete.clear();
} }
this.forceUpdateAll = false; this.forceUpdateAll = false;