mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-28 16:07:02 +01:00
Fixed exceptions in dispose not allowing PT Run to terminate (#5615)
This commit is contained in:
committed by
Enrico Giordani
parent
76ab389e88
commit
136562b766
@@ -60,8 +60,15 @@ namespace PowerLauncher
|
||||
{
|
||||
RunnerHelper.WaitForPowerToysRunner(_powerToysPid, () =>
|
||||
{
|
||||
Dispose();
|
||||
Environment.Exit(0);
|
||||
try
|
||||
{
|
||||
Dispose();
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Environment.Exit(0);
|
||||
}
|
||||
});
|
||||
|
||||
var bootTime = new System.Diagnostics.Stopwatch();
|
||||
|
||||
Reference in New Issue
Block a user