Playing nice doesn't work - kill MBT

This commit is contained in:
Eric Reed
2013-02-28 12:27:49 -05:00
parent d3e6dd5535
commit a34c8c7cff
3 changed files with 8 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ namespace MediaBrowser.Uninstaller.Execute
{
using (var client = new WebClient())
{
lblHeading.Content = "Shutting Down Server...";
lblHeading.Content = "Shutting Down Media Browser Server...";
try
{
client.UploadString("http://localhost:8096/mediabrowser/system/shutdown", "");
@@ -104,9 +104,10 @@ namespace MediaBrowser.Uninstaller.Execute
var processes = Process.GetProcessesByName("mediabrowser.ui");
if (processes.Length > 0)
{
lblHeading.Content = "Shutting Down Media Browser Theater...";
try
{
processes[0].CloseMainWindow();
processes[0].Kill();
}
catch (Exception ex)
{