diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-08 22:18:14 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-08 22:18:14 -0500 |
| commit | 40897bac1494791e1ec6abcfe85cda27d4664a32 (patch) | |
| tree | 4788db3f5e35a3a06c9668f4460299c4f4a17ca1 /MediaBrowser.ServerApplication/MainStartup.cs | |
| parent | 0ef95fb19cde8f4443e2cede94ec21583c3dc9d7 (diff) | |
fixes #941 - Rework password recovery and remove IsLocal checks
Diffstat (limited to 'MediaBrowser.ServerApplication/MainStartup.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/MainStartup.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index e6cea5463..e80284356 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -36,7 +36,9 @@ namespace MediaBrowser.ServerApplication var options = new StartupOptions(); _isRunningAsService = options.ContainsOption("-service"); - var applicationPath = Process.GetCurrentProcess().MainModule.FileName; + var currentProcess = Process.GetCurrentProcess(); + + var applicationPath = currentProcess.MainModule.FileName; var appPaths = CreateApplicationPaths(applicationPath, _isRunningAsService); @@ -84,8 +86,6 @@ namespace MediaBrowser.ServerApplication RunServiceInstallationIfNeeded(applicationPath); - var currentProcess = Process.GetCurrentProcess(); - if (IsAlreadyRunning(applicationPath, currentProcess)) { logger.Info("Shutting down because another instance of Media Browser Server is already running."); |
