Check for connectivity issues 2: electric boogaloo #27

Merged
Jeremy Kescher merged 1 commits from jeremy/0128/connectivity-2-electric-boogaloo into master 2020-01-29 11:43:55 +00:00
2 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,6 @@ class Server {
String displayName;
String uri;
ServerStatus status = ServerStatus.unknown;
double ping;
Server(
this.displayName,

View File

@ -395,7 +395,7 @@ class _ServerListState extends State<ServerList> {
}
try {
var _ = await HttpUtils.getForJson('https://dns.google.com/resolve');
await HttpUtils.getForFullResponse('https://dns.google.com');
} catch (SocketException) {
return ServerStatus.clientConnectivityIssues;
}