Skip to content

Commit

Permalink
disable ping fallback notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Geosearchef committed Sep 30, 2021
1 parent a4bffe3 commit e65e501
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public static CompletableFuture<Double> getLatency(String address, Integer count
log.warn("Failed to ping {}", finalAddress);
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 + ". Using fallback server instead.");
log.warn("SERVER NOT RESPONDING (TO ICMP ECHO). FIX THE SERVER!!! THIS IS A -->TEMPORARY<-- SOLUTION! Falling back to " + fallback + " for latency estimation");
// TrayIcon.showMessage("Failed to estimate latency to " + address + ". Using fallback server instead."); // TODO: disabled to not annoy people, enable after the server is fixed
return getLatency(fallback, IceAdapter.PING_COUNT).get();
}
TrayIcon.showMessage("Unable to contact relay server!");
Expand Down

0 comments on commit e65e501

Please sign in to comment.