Fixed exceptions in dispose not allowing PT Run to terminate (#5615)

This commit is contained in:
Arjun Balgovind
2020-08-04 21:06:07 -07:00
committed by GitHub
parent a793cf4ac2
commit 5c10c78595

View File

@@ -59,9 +59,16 @@ namespace PowerLauncher
private void OnStartup(object sender, StartupEventArgs e) private void OnStartup(object sender, StartupEventArgs e)
{ {
RunnerHelper.WaitForPowerToysRunner(_powerToysPid, () => RunnerHelper.WaitForPowerToysRunner(_powerToysPid, () =>
{
try
{ {
Dispose(); Dispose();
}
finally
{
Environment.Exit(0); Environment.Exit(0);
}
}); });
var bootTime = new System.Diagnostics.Stopwatch(); var bootTime = new System.Diagnostics.Stopwatch();