Skip to content

Commit

Permalink
Fixed exceptions in dispose not allowing PT Run to terminate (#5615)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunbalgovind authored and enricogior committed Aug 5, 2020
1 parent 76ab389 commit 136562b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/modules/launcher/PowerLauncher/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,15 @@ private void OnStartup(object sender, StartupEventArgs e)
{
RunnerHelper.WaitForPowerToysRunner(_powerToysPid, () =>
{
Dispose();
Environment.Exit(0);
try
{
Dispose();
}
finally
{
Environment.Exit(0);
}
});

var bootTime = new System.Diagnostics.Stopwatch();
Expand Down

0 comments on commit 136562b

Please sign in to comment.