mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 02:07:41 +00:00
Update errors shouldn't re-run updater 30 seconds later so we'll catch the error
This commit is contained in:
parent
7efe4419fb
commit
6296293286
1 changed files with 31 additions and 24 deletions
|
@ -1,4 +1,5 @@
|
||||||
using System.Diagnostics;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common;
|
using NzbDrone.Common;
|
||||||
|
@ -47,6 +48,8 @@ namespace NzbDrone.Core.Update
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InstallUpdate(UpdatePackage updatePackage)
|
private void InstallUpdate(UpdatePackage updatePackage)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder();
|
var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder();
|
||||||
|
|
||||||
|
@ -84,6 +87,10 @@ namespace NzbDrone.Core.Update
|
||||||
|
|
||||||
_logger.Error("Update process failed");
|
_logger.Error("Update process failed");
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.ErrorException("Update process failed", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue