mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Update will return after started, instead of waiting for exit.
This should prevent the update from re-running every 30 seconds when its failing.
This commit is contained in:
@@ -72,11 +72,7 @@ namespace NzbDrone.Core.Update
|
||||
|
||||
_logger.Info("Starting update client {0}", _appFolderInfo.GetUpdateClientExePath());
|
||||
|
||||
var process = _processProvider.Start(_appFolderInfo.GetUpdateClientExePath(), _processProvider.GetCurrentProcess().Id.ToString());
|
||||
|
||||
_processProvider.WaitForExit(process);
|
||||
|
||||
_logger.Error("Update process failed");
|
||||
_processProvider.Start(_appFolderInfo.GetUpdateClientExePath(), _processProvider.GetCurrentProcess().Id.ToString());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user