1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-19 21:46:50 -04:00

Attempt to remove pid file only if config folder exists

(cherry picked from commit df4a56662f6870a194179ffc29c98dc64af9e07c)
This commit is contained in:
Bogdan
2025-09-22 15:53:29 +03:00
committed by bakerboy448
parent 554a54b009
commit 0297dba7f9
@@ -199,7 +199,7 @@ namespace NzbDrone.Common.EnvironmentInfo
private void RemovePidFile() private void RemovePidFile()
{ {
if (OsInfo.IsNotWindows) if (OsInfo.IsNotWindows && _diskProvider.FolderExists(_appFolderInfo.AppDataFolder))
{ {
_diskProvider.DeleteFile(Path.Combine(_appFolderInfo.AppDataFolder, "radarr.pid")); _diskProvider.DeleteFile(Path.Combine(_appFolderInfo.AppDataFolder, "radarr.pid"));
} }