Fixed: Updater occasionally killed Sonarr twice before allowing it to be restarted by upstart.

Fixed: Updater killed itself during update on debian jessie.
This commit is contained in:
Taloth Saldono 2015-07-08 20:54:47 +02:00
parent 103de770c3
commit 1eb6629088
3 changed files with 31 additions and 5 deletions

View file

@ -82,6 +82,9 @@ namespace NzbDrone.Update.UpdateEngine
try
{
_processProvider.FindProcessByName(ProcessProvider.NZB_DRONE_CONSOLE_PROCESS_NAME);
_processProvider.FindProcessByName(ProcessProvider.NZB_DRONE_PROCESS_NAME);
if (OsInfo.IsWindows)
{
_terminateNzbDrone.Terminate(processId);