aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Installer/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-02-28 12:04:25 -0500
committerEric Reed <ebr@mediabrowser3.com>2013-02-28 12:04:25 -0500
commitcc574074b9375390e3a7252ea97abe89f387861f (patch)
tree15e897c18446399b2717f49e0f977ada02191d54 /MediaBrowser.Installer/MainWindow.xaml.cs
parent18f2ffd92cc98328a70f843be8d993bf6b2eb1ac (diff)
Only try to shutdown server if actually running
Diffstat (limited to 'MediaBrowser.Installer/MainWindow.xaml.cs')
-rw-r--r--MediaBrowser.Installer/MainWindow.xaml.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Installer/MainWindow.xaml.cs b/MediaBrowser.Installer/MainWindow.xaml.cs
index 4268e5757..f3f3c7740 100644
--- a/MediaBrowser.Installer/MainWindow.xaml.cs
+++ b/MediaBrowser.Installer/MainWindow.xaml.cs
@@ -114,8 +114,8 @@ namespace MediaBrowser.Installer
var version = await GetPackageVersion();
lblStatus.Content = string.Format("Downloading {0} (version {1})...", FriendlyName, version.versionStr);
- // Now try and shut down the server if that is what we are installing
- if (PackageName == "MBServer")
+ // Now try and shut down the server if that is what we are installing and it is running
+ if (PackageName == "MBServer" && Process.GetProcessesByName("mediabrowser.serverapplication").Length != 0)
{
using (var client = new WebClient())
{