From 22afa1455e509b09d60745e758bd7b2aecafe646 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Thu, 14 May 2020 00:26:58 +0200 Subject: Fix two ways a client could be listed as free but be not connectable. 1. User gets assigned a client but never connects to the vnc. Client is "in use" but ist actually idleing in the login screen. The client gets updated and the state set to IDLE but the inUseBy is not reset because the vnc password stays the same for some time. Clients in IDLE state with no user connected to the vnc tunnel now get reset to not in use. 2. If a client is missing from the JSON list and had IDLE as the last status it was still listed as IDLE until the timeout (5 minutes) where it is removed entirely. Missing clients waiting to timeout are now set to OFFLINE state. --- src/main/java/de/bwlehrpool/bwlp_guac/JsonGroup.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/main/java/de/bwlehrpool/bwlp_guac/JsonGroup.java') diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/JsonGroup.java b/src/main/java/de/bwlehrpool/bwlp_guac/JsonGroup.java index 27e769c..c5adf9e 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/JsonGroup.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/JsonGroup.java @@ -39,7 +39,4 @@ public class JsonGroup { @JsonIgnore public ArrayList clientList = new ArrayList(); - @JsonIgnore - public boolean checked = false; - } -- cgit v1.2.3-55-g7522