mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
3.2.30.13
This commit is contained in:
parent
c6bd66a9f9
commit
a46f81d572
2 changed files with 11 additions and 4 deletions
|
@ -133,12 +133,19 @@ namespace MediaBrowser.ServerApplication
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool IsServiceInstalled()
|
private static bool IsServiceInstalled()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var serviceName = BackgroundService.GetExistingServiceName();
|
var serviceName = BackgroundService.GetExistingServiceName();
|
||||||
var ctl = ServiceController.GetServices().FirstOrDefault(s => s.ServiceName == serviceName);
|
var ctl = ServiceController.GetServices().FirstOrDefault(s => s.ServiceName == serviceName);
|
||||||
|
|
||||||
return ctl != null;
|
return ctl != null;
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether [is already running] [the specified current process].
|
/// Determines whether [is already running] [the specified current process].
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.2.30.12")]
|
[assembly: AssemblyVersion("3.2.30.13")]
|
||||||
|
|
Loading…
Reference in a new issue