From ff6e38d97f31739a39779b164c8f47a3b95bc72f Mon Sep 17 00:00:00 2001 From: anhefti Date: Tue, 17 Nov 2020 12:28:21 +0100 Subject: [PATCH] SEBSERV-146 fixed --- .../gui/service/session/ClientConnectionTable.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java index e7b0dbdc..70b53006 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java @@ -296,12 +296,12 @@ public final class ClientConnectionTable { } public void updateValues() { - if (this.statusFilterChanged) { + if (this.statusFilterChanged || this.forceUpdateAll) { this.toDelete.clear(); this.toDelete.addAll(this.tableMapping.keySet()); } this.restCallBuilder - .withHeader(API.EXAM_MONITORING_STATE_FILTER, (this.forceUpdateAll) ? "" : this.statusFilterParam) + .withHeader(API.EXAM_MONITORING_STATE_FILTER, this.statusFilterParam) .call() .get(error -> { log.error("Error poll connection data: ", error); @@ -312,7 +312,7 @@ public final class ClientConnectionTable { data.getConnectionId(), UpdatableTableItem::new); tableItem.push(data); - if (this.statusFilterChanged) { + if (this.statusFilterChanged || this.forceUpdateAll) { this.toDelete.remove(data.getConnectionId()); } });