mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Fixed Environment Variable conflict in IISProvider
This commit is contained in:
parent
fbf7d20c5d
commit
bc5307a4d3
8 changed files with 91 additions and 14 deletions
|
@ -9,6 +9,9 @@ namespace NzbDrone.Common
|
|||
{
|
||||
public const string IIS_FOLDER_NAME = "iisexpress";
|
||||
|
||||
public const string NZBDRONE_PATH = "NZBDRONE_PATH";
|
||||
public const string NZBDRONE_PID = "NZBDRONE_PID";
|
||||
|
||||
#if DEBUG
|
||||
private static readonly bool isInDebug = true;
|
||||
#else
|
||||
|
@ -98,7 +101,7 @@ namespace NzbDrone.Common
|
|||
{
|
||||
get
|
||||
{
|
||||
var id = Convert.ToInt32(Environment.GetEnvironmentVariable("NZBDRONE_PID"));
|
||||
var id = Convert.ToInt32(Environment.GetEnvironmentVariable(NZBDRONE_PID));
|
||||
|
||||
if (id == 0)
|
||||
throw new InvalidOperationException("NZBDRONE_PID isn't a valid environment variable.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue