mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
fixes #941 - Rework password recovery and remove IsLocal checks
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user