1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-25 22:46:31 -04:00

Fixed: Slower daemon startup loop if Sonarr runs into non-recoverable errors such as unwritable pid/appfolder/config file.

This commit is contained in:
Taloth Saldono
2017-07-28 23:40:12 +02:00
parent f7f155be1f
commit 84d2d6a1d5
6 changed files with 112 additions and 14 deletions
@@ -3,6 +3,7 @@ using System.Security.AccessControl;
using System.Security.Principal;
using NLog;
using NzbDrone.Common.Disk;
using NzbDrone.Common.Exceptions;
using NzbDrone.Common.Instrumentation;
namespace NzbDrone.Common.EnvironmentInfo
@@ -33,6 +34,11 @@ namespace NzbDrone.Common.EnvironmentInfo
{
SetPermissions();
}
if (!_diskProvider.FolderWritable(_appFolderInfo.AppDataFolder))
{
throw new SonarrStartupException("AppFolder {0} is not writable", _appFolderInfo.AppDataFolder);
}
}
private void SetPermissions()