From ec2f05baf71e5d60c43d958072c9180dd4ce1252 Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Wed, 29 Jan 2020 12:43:21 +0100 Subject: [PATCH] Check for connectivity issues 2: electric boogaloo --- lib/server.dart | 1 - lib/serverlist.dart | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/server.dart b/lib/server.dart index 9eb3e2a..05cba87 100644 --- a/lib/server.dart +++ b/lib/server.dart @@ -11,7 +11,6 @@ class Server { String displayName; String uri; ServerStatus status = ServerStatus.unknown; - double ping; Server( this.displayName, diff --git a/lib/serverlist.dart b/lib/serverlist.dart index 6bc9195..5dd33d6 100644 --- a/lib/serverlist.dart +++ b/lib/serverlist.dart @@ -395,7 +395,7 @@ class _ServerListState extends State { } try { - var _ = await HttpUtils.getForJson('https://dns.google.com/resolve'); + await HttpUtils.getForFullResponse('https://dns.google.com'); } catch (SocketException) { return ServerStatus.clientConnectivityIssues; } -- 2.47.0