mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-17 13:10:28 +01:00
3.2.30.13
This commit is contained in:
@@ -134,10 +134,17 @@ namespace MediaBrowser.ServerApplication
|
||||
|
||||
private static bool IsServiceInstalled()
|
||||
{
|
||||
var serviceName = BackgroundService.GetExistingServiceName();
|
||||
var ctl = ServiceController.GetServices().FirstOrDefault(s => s.ServiceName == serviceName);
|
||||
try
|
||||
{
|
||||
var serviceName = BackgroundService.GetExistingServiceName();
|
||||
var ctl = ServiceController.GetServices().FirstOrDefault(s => s.ServiceName == serviceName);
|
||||
|
||||
return ctl != null;
|
||||
return ctl != null;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user