mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-04 13:10:23 -05:00
Attempt to remove pid file only if config folder exists
(cherry picked from commit df4a56662f6870a194179ffc29c98dc64af9e07c)
This commit is contained in:
@@ -199,7 +199,7 @@ namespace NzbDrone.Common.EnvironmentInfo
|
||||
|
||||
private void RemovePidFile()
|
||||
{
|
||||
if (OsInfo.IsNotWindows)
|
||||
if (OsInfo.IsNotWindows && _diskProvider.FolderExists(_appFolderInfo.AppDataFolder))
|
||||
{
|
||||
_diskProvider.DeleteFile(Path.Combine(_appFolderInfo.AppDataFolder, "radarr.pid"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user