Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4821 from toggl-open-source/fix/crash-auto-updater
Browse files Browse the repository at this point in the history
Do not crash the app when launching auto-updater fails with Win32Exception
  • Loading branch information
atsvirchkova authored Feb 23, 2021
2 parents 3c81cb1 + 10093ec commit d2e549f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -57,6 +58,10 @@ public bool InstallPendingUpdate(bool withRestart = true)
{
// Ignore race conditions
}
catch (Win32Exception e)
{
BugsnagService.NotifyBugsnag(e);
}
}

return false;
Expand Down

0 comments on commit d2e549f

Please sign in to comment.