mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
commit
926d976e84
2 changed files with 11 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.2.30.12")]
|
||||
[assembly: AssemblyVersion("3.2.30.13")]
|
||||
|
|
Loading…
Reference in a new issue