mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-28 11:44:48 +03:00
Check service running before checking self restart
This commit is contained in:
@@ -45,7 +45,11 @@ namespace MediaBrowser.ServerApplication
|
||||
{
|
||||
var options = new StartupOptions();
|
||||
_isRunningAsService = options.ContainsOption("-service");
|
||||
_canRestartService = CanRestartWindowsService();
|
||||
|
||||
if (_isRunningAsService)
|
||||
{
|
||||
_canRestartService = CanRestartWindowsService();
|
||||
}
|
||||
|
||||
var currentProcess = Process.GetCurrentProcess();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user