mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-17 21:26:13 -04:00
Attempt to remove pid file only if config folder exists
This commit is contained in:
@@ -222,7 +222,7 @@ namespace NzbDrone.Common.EnvironmentInfo
|
||||
|
||||
private void RemovePidFile()
|
||||
{
|
||||
if (OsInfo.IsNotWindows)
|
||||
if (OsInfo.IsNotWindows && _diskProvider.FolderExists(_appFolderInfo.AppDataFolder))
|
||||
{
|
||||
_diskProvider.DeleteFile(Path.Combine(_appFolderInfo.AppDataFolder, "sonarr.pid"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user