diff --git a/src/main/java/app/services/ExternalServices.java b/src/main/java/app/services/ExternalServices.java index 26757f9..5727b56 100644 --- a/src/main/java/app/services/ExternalServices.java +++ b/src/main/java/app/services/ExternalServices.java @@ -48,6 +48,7 @@ public class ExternalServices { } public void update(String name) { + if (name == null || name.isEmpty()) return; services.put(name, Instant.now().getEpochSecond()); } } diff --git a/src/main/java/app/websocket/handlers/ExternalServicesHandler.java b/src/main/java/app/websocket/handlers/ExternalServicesHandler.java index 6be2069..1118d72 100644 --- a/src/main/java/app/websocket/handlers/ExternalServicesHandler.java +++ b/src/main/java/app/websocket/handlers/ExternalServicesHandler.java @@ -37,7 +37,6 @@ public class ExternalServicesHandler extends TextWebSocketHandler implements Bas @Override @CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) public void afterConnectionEstablished(WebSocketSession session) throws Exception { - logger.info("Session {} open", session.getId()); super.afterConnectionEstablished(session); if (session.isOpen()) { logger.info("Session {} open", session.getId());