message: Do not crash app on exceptions due to race conditions (win)
diff: @@ -5,6 +5,7 @@ using System.Reactive.Subjects;
  using System.Reactive.Threading.Tasks;
  using System.Threading.Tasks;
  using Onova;
  +using Onova.Exceptions;
  using Onova.Services;
  namespace TogglDesktop.Services
  @@ -37,9 +38,17 @@ namespace TogglDesktop.Services
  {
  var lastPreparedVersion = _updateManager.GetPreparedUpdates().LastOrDefault();
  if (lastPreparedVersion != null)
  + {
  + try
  {
  _updateManager.LaunchUpdater(lastPreparedVersion, withRestart);
  }
  + catch (Exception e)
  + when (e is UpdaterAlreadyLaunchedException || e is LockFileNotAcquiredException)
  + {
  + // Ignore race conditions
  + }
  + }
  }
  public void Dispose()
  {
  @@ -59,8 +68,18 @@ namespace TogglDesktop.Services
  {
  var check = await _updateManager.CheckForUpdatesAsync();
  if (check.CanUpdate)
  + {
  + try
  {
  await _updateManager.PrepareUpdateAsync(check.LastVersion);
  + }
  + catch (Exception e)
  + when (e is UpdaterAlreadyLaunchedException || e is LockFileNotAcquiredException)
  + {
  + // Ignore race conditions
  + return false;
  + }
  +
  return true;
  }
  