mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07: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:
parent
c9ec933d24
commit
ab8b521b85
2 changed files with 1 additions and 11 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue