Skip to content

Commit

Permalink
fix(ws-fetcher): remove duplicate close handler
Browse files Browse the repository at this point in the history
  • Loading branch information
NuttyShrimp committed Apr 23, 2024
1 parent 8ea00ea commit 9b0c733
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/java/telraam/station/websocket/WebsocketFetcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Detection> new_detections = new ArrayList<>();
Expand Down

0 comments on commit 9b0c733

Please sign in to comment.