Check for connectivity issues 2: electric boogaloo #27
2 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,6 @@ class Server {
|
||||||
String displayName;
|
String displayName;
|
||||||
String uri;
|
String uri;
|
||||||
ServerStatus status = ServerStatus.unknown;
|
ServerStatus status = ServerStatus.unknown;
|
||||||
double ping;
|
|
||||||
|
|
||||||
Server(
|
Server(
|
||||||
this.displayName,
|
this.displayName,
|
||||||
|
|
|
@ -395,7 +395,7 @@ class _ServerListState extends State<ServerList> {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var _ = await HttpUtils.getForJson('https://dns.google.com/resolve');
|
await HttpUtils.getForFullResponse('https://dns.google.com');
|
||||||
} catch (SocketException) {
|
} catch (SocketException) {
|
||||||
return ServerStatus.clientConnectivityIssues;
|
return ServerStatus.clientConnectivityIssues;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue