mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Fixed: Fixed an issue where there could be a race condition during app update.
This commit is contained in:
parent
aa42111516
commit
39be4c567d
3 changed files with 16 additions and 7 deletions
|
@ -57,6 +57,12 @@ namespace NzbDrone.Common
|
|||
return process;
|
||||
}
|
||||
|
||||
public virtual void WaitForExit(Process process)
|
||||
{
|
||||
Logger.Trace("Waiting for process {0} to exit.", process.ProcessName);
|
||||
process.WaitForExit();
|
||||
}
|
||||
|
||||
public virtual void Kill(int processId)
|
||||
{
|
||||
if (processId == 0 || !Process.GetProcesses().Any(p => p.Id == processId))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue