diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-06-04 12:15:44 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-06-04 12:15:44 -0400 |
| commit | 0d72696bf49dde9bd5b810fde17964c6e4afc82c (patch) | |
| tree | fecbc5ca32d63e4bd30b61ac68e77a2431faf4b9 /MediaBrowser.ServerApplication/MainStartup.cs | |
| parent | 3640f620863e4947a07ad6ebbf54ab6427534b38 (diff) | |
restored people editing
Diffstat (limited to 'MediaBrowser.ServerApplication/MainStartup.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/MainStartup.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index cd676061e..4f143aaf7 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -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) { |
