From 97956001f942d28a3243cb0a0dc5dc6b95e5e6aa Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Fri, 18 Jun 2021 13:45:22 +1000 Subject: [PATCH 1/2] change connection check to synchronous wait --- Droplex/Downloader.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Droplex/Downloader.cs b/Droplex/Downloader.cs index c6b3295..0047b08 100644 --- a/Droplex/Downloader.cs +++ b/Droplex/Downloader.cs @@ -61,7 +61,9 @@ public static async Task CheckGoogleConnection() { var cts = new CancellationTokenSource(); cts.CancelAfter(2000); - await client.GetAsync("http://clients3.google.com/generate_204", cts.Token); + + // this needs to finish first as it determines the url + client.GetAsync("http://clients3.google.com/generate_204", cts.Token).Wait(); return true; } From 5f640dbca24972f617c64d8ecc90863f44463261 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Fri, 18 Jun 2021 13:46:24 +1000 Subject: [PATCH 2/2] version bump --- Droplex/Droplex.csproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Droplex/Droplex.csproj b/Droplex/Droplex.csproj index a127a5e..3193adb 100644 --- a/Droplex/Droplex.csproj +++ b/Droplex/Droplex.csproj @@ -1,4 +1,4 @@ - + netcoreapp3.1 @@ -10,9 +10,9 @@ - 1.3.0 - 1.3.0 - 1.3.0 + 1.3.1 + 1.3.1 + 1.3.1 Droplex Jeremy Wu MIT