summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java4
-rw-r--r--src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java5
2 files changed, 0 insertions, 9 deletions
diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java b/src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java
index aa7506d..75e93f3 100644
--- a/src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java
+++ b/src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java
@@ -169,10 +169,6 @@ public class AvailableClient implements Cloneable {
return locationid;
}
- public void markAsMissing() {
- this.state = State.OFFLINE;
- }
-
public GuacamoleConfiguration toGuacConfig() {
GuacamoleConfiguration cfg = new GuacamoleConfiguration();
cfg.setProtocol("vnc");
diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java b/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java
index c2d155a..6216389 100644
--- a/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java
+++ b/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java
@@ -249,7 +249,6 @@ public class ConnectionManager {
LOGGER.info("Client list null");
}
synchronized (clientPool) {
- HashSet<AvailableClient> processedClients = new HashSet<AvailableClient>();
for (JsonClient cnew : root.clients) {
if (cnew.password == null || cnew.clientip == null)
continue; // Invalid
@@ -286,14 +285,10 @@ public class ConnectionManager {
}
existing.update(cnew);
}
- processedClients.add(existing);
}
final long NOW = System.currentTimeMillis();
for (Iterator<AvailableClient> it = clientPool.values().iterator(); it.hasNext();) {
AvailableClient c = it.next();
- if (!processedClients.contains(c)) {
- c.markAsMissing();
- }
if (c.isTimeout(NOW)) {
LOGGER.info("Removing client " + c + " from list");
for (JsonGroup group : c.groupList) {