Преглед на файлове

Update UpdateViewModel.cs

Krzysztof Krysiński преди 1 седмица
родител
ревизия
6ad5318562
променени са 1 файла, в които са добавени 5 реда и са изтрити 11 реда
  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;
         }