From 40897bac1494791e1ec6abcfe85cda27d4664a32 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 8 Nov 2014 22:18:14 -0500 Subject: fixes #941 - Rework password recovery and remove IsLocal checks --- MediaBrowser.ServerApplication/MainStartup.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.ServerApplication') 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."); -- cgit v1.2.3