Skip to content

Commit 810ccb5

Browse files
committed
fix exception if try to kill non-existing process
1 parent e64696f commit 810ccb5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

UnityLauncherPro/MainWindow.xaml.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,13 @@ void KillSelectedProcess(object sender, ExecutedRoutedEventArgs e)
14471447
var proj = GetSelectedProject();
14481448
if (proj.Process != null)
14491449
{
1450-
proj.Process.Kill();
1450+
try
1451+
{
1452+
proj.Process.Kill();
1453+
}
1454+
catch (Exception)
1455+
{
1456+
}
14511457
proj.Process = null;
14521458
}
14531459
}

0 commit comments

Comments
 (0)