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 uri;
|
||||
ServerStatus status = ServerStatus.unknown;
|
||||
double ping;
|
||||
|
||||
Server(
|
||||
this.displayName,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue