Explorar o código

Update UpdateViewModel.cs

Krzysztof Krysiński hai 1 semana
pai
achega
6ad5318562
Modificáronse 1 ficheiros con 5 adicións e 11 borrados
  1. 5 11
      src/PixiEditor/ViewModels/SubViewModels/UpdateViewModel.cs

+ 5 - 11
src/PixiEditor/ViewModels/SubViewModels/UpdateViewModel.cs

@@ -220,20 +220,14 @@ internal class UpdateViewModel : SubViewModel<ViewModelMain>
             updateFileDoesNotExists = !AutoUpdateFileExists();
             updateExeDoesNotExists = !UpdateInstallerFileExists();
         }
-        catch (SocketException ex)
-        {
-            UpdateState = UpdateState.UnableToCheck;
-            return;
-        }
-        catch (IOException ex)
-        {
-            UpdateState = UpdateState.UnableToCheck;
-            return;
-        }
         catch (Exception ex)
         {
             UpdateState = UpdateState.UnableToCheck;
-            CrashHelper.SendExceptionInfo(ex);
+            if (ex is not IOException && ex is not SocketException)
+            {
+                CrashHelper.SendExceptionInfo(ex);
+            }
+
             return;
         }