Browse Source

external services fix 1

master
gsd 1 year ago
parent
commit
a08a0ea52b
  1. 1
      src/main/java/app/services/ExternalServices.java
  2. 1
      src/main/java/app/websocket/handlers/ExternalServicesHandler.java

1
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());
}
}

1
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());

Loading…
Cancel
Save