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:
@@ -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"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user