Skip to content

Commit

Permalink
reduce tray icon notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Geosearchef committed Aug 1, 2021
1 parent a3c3ec7 commit a4bffe3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public class PingWrapper {
// In case the server cannot be reached / doesn't respond to ICMP echo, use an alternative fallback with a similar latency
private static final Map<String, String> fallbackServers = new HashMap<String, String>() {{
put("faforever.com", "test.faforever.com");
put("test.faforever.com", "geosearchef.de");
}};

/*
Expand Down Expand Up @@ -64,7 +63,7 @@ public static CompletableFuture<Double> getLatency(String address, Integer count
if(fallbackServers.containsKey(address)) {
String fallback = fallbackServers.get(address);
log.info("Falling back to " + fallback + " for latency estimation");
TrayIcon.showMessage("Failed to estimate latency to " + address + ". Falling back to " + fallback + ".");
TrayIcon.showMessage("Failed to estimate latency to " + address + ". Using fallback server instead.");
return getLatency(fallback, IceAdapter.PING_COUNT).get();
}
TrayIcon.showMessage("Unable to contact relay server!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public void mouseExited(MouseEvent mouseEvent) {
log.error("Tray icon could not be added", e);
}

showMessage("ICE Adapter started");

log.info("Created tray icon");
}

Expand Down

0 comments on commit a4bffe3

Please sign in to comment.