mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-08 08:48:48 +01:00
restored people editing
This commit is contained in:
@@ -798,6 +798,8 @@ namespace MediaBrowser.ServerApplication
|
||||
Logger.ErrorException("Error sending server restart notification", ex);
|
||||
}
|
||||
|
||||
Logger.Debug("Calling NativeApp.Restart");
|
||||
|
||||
NativeApp.Restart();
|
||||
}
|
||||
|
||||
|
||||
@@ -116,11 +116,13 @@ namespace MediaBrowser.ServerApplication
|
||||
/// <returns><c>true</c> if [is already running] [the specified current process]; otherwise, <c>false</c>.</returns>
|
||||
private static bool IsAlreadyRunning(string applicationPath, Process currentProcess)
|
||||
{
|
||||
var filename = Path.GetFileName(applicationPath);
|
||||
|
||||
var duplicate = Process.GetProcesses().FirstOrDefault(i =>
|
||||
{
|
||||
try
|
||||
{
|
||||
return string.Equals(applicationPath, i.MainModule.FileName) && currentProcess.Id != i.Id;
|
||||
return string.Equals(filename, Path.GetFileName(i.MainModule.FileName)) && currentProcess.Id != i.Id;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user