diff --git a/Wox.Core/Updater.cs b/Wox.Core/Updater.cs
index 0c142da102..ab07821c00 100644
--- a/Wox.Core/Updater.cs
+++ b/Wox.Core/Updater.cs
@@ -1,6 +1,8 @@
using System;
using System.Diagnostics;
using System.Net;
+using System.Net.Http;
+using System.Net.Sockets;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
@@ -23,14 +25,25 @@ namespace Wox.Core
try
{
// todo 5/9 the return value of UpdateApp() is NULL, fucking useless!
- using (var updater= await UpdateManager.GitHubUpdateManager(Infrastructure.Wox.Github, urlDownloader:downloader))
+ using (
+ var updater =
+ await UpdateManager.GitHubUpdateManager(Infrastructure.Wox.Github, urlDownloader: downloader))
{
await updater.UpdateApp();
}
}
- catch (WebException ex)
+ catch (HttpRequestException he)
{
- Log.Error(ex);
+ Log.Error(he);
+ }
+ catch (WebException we)
+ {
+ Log.Error(we);
+ }
+ catch (SocketException sc)
+ {
+ Log.Info("Socket exception happened!, which method cause this exception??");
+ Log.Error(sc);
}
catch (Exception exception)
{
diff --git a/Wox.Core/Wox.Core.csproj b/Wox.Core/Wox.Core.csproj
index 2ce8b41646..7debf7a622 100644
--- a/Wox.Core/Wox.Core.csproj
+++ b/Wox.Core/Wox.Core.csproj
@@ -91,6 +91,7 @@
+