Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Nov 2, 2018
1 parent be0c077 commit 608eeb9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ public void setServers(@NonNull SparseServers servers, @NonNull AriaFiles files)
Servers list = servers.get(file.index);
if (list == null) continue;
for (Server server : list) {
IPDetails details = freeGeoIp.getCached(server.uri.getHost());
String host = server.uri.getHost();
if (host == null) continue;

IPDetails details = freeGeoIp.getCached(host);
if (details != null)
add(details.countryCode, server.downloadSpeed);
}
Expand Down

0 comments on commit 608eeb9

Please sign in to comment.