Skip to content

Commit

Permalink
🐛 Fixed cancelling download being treated as an error
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherFoxGuy committed Nov 1, 2021
1 parent f49944b commit df0f5ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Client/Pages/UpdatePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ private async Task DownloadFile(string dir, string file)
Utils.LOG(Utils.LogPrefix.INFO, $"File: {dest}");
await _webClient.DownloadFileTaskAsync(new Uri(dlLink), dest);
}
catch (WebException ex) when (ex.Status == WebExceptionStatus.RequestCanceled)
{
Utils.LOG(Utils.LogPrefix.INFO, ex.ToString());
}
catch (Exception ex)
{
Utils.LOG(Utils.LogPrefix.ERROR, ex.ToString());
Expand Down
4 changes: 2 additions & 2 deletions Client/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.1.2.1")]
[assembly: AssemblyFileVersion("1.1.2.1")]
[assembly: AssemblyVersion("1.1.3.0")]
[assembly: AssemblyFileVersion("1.1.3.0")]

0 comments on commit df0f5ea

Please sign in to comment.