Gracefully exit on restart instead of forcibly killing it

This commit is contained in:
Mark McDowall 2014-03-09 22:35:50 -07:00
parent ce13be3d43
commit c2087af8c9
13 changed files with 92 additions and 22 deletions

View file

@ -28,6 +28,7 @@ namespace NzbDrone.Core.Configuration
string Password { get; }
string LogLevel { get; }
string Branch { get; }
bool AutoUpdate { get; }
string ApiKey { get; }
bool Torrent { get; }
string SslCertHash { get; }
@ -133,6 +134,11 @@ namespace NzbDrone.Core.Configuration
get { return GetValue("Branch", "master").ToLowerInvariant(); }
}
public bool AutoUpdate
{
get { return GetValueBoolean("AutoUpdate", false, persist: false); }
}
public string Username
{
get { return GetValue("Username", ""); }