From 9b0c73327063b2b442057a48c3a1677e3d2a9faf Mon Sep 17 00:00:00 2001 From: NuttyShrimp Date: Tue, 23 Apr 2024 16:34:32 +0200 Subject: [PATCH] fix(ws-fetcher): remove duplicate close handler --- .../java/telraam/station/websocket/WebsocketFetcher.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/telraam/station/websocket/WebsocketFetcher.java b/src/main/java/telraam/station/websocket/WebsocketFetcher.java index 62e9996..3d49016 100644 --- a/src/main/java/telraam/station/websocket/WebsocketFetcher.java +++ b/src/main/java/telraam/station/websocket/WebsocketFetcher.java @@ -103,15 +103,6 @@ public void fetch() { } this.fetch(); }); - websocketClient.addOnCloseHandler(() -> { - this.logger.severe(String.format("Websocket for station %s got closed", station.getName())); - try { - Thread.sleep(Fetcher.ERROR_TIMEOUT_MS); - } catch (InterruptedException e) { - logger.severe(e.getMessage()); - } - this.fetch(); - }); websocketClient.addMessageHandler((String msg) -> { //Insert detections List new_detections = new ArrayList<>();