restored people editing

This commit is contained in:
Luke Pulverenti
2014-06-04 12:15:44 -04:00
parent 3640f62086
commit 0d72696bf4
5 changed files with 24 additions and 8 deletions

View File

@@ -798,6 +798,8 @@ namespace MediaBrowser.ServerApplication
Logger.ErrorException("Error sending server restart notification", ex);
}
Logger.Debug("Calling NativeApp.Restart");
NativeApp.Restart();
}

View File

@@ -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)
{