fix process exited before calling "close" method on dispose.

This commit is contained in:
Hongtao Zhang 2024-06-05 19:29:24 -05:00
parent 8972d9e51a
commit 87871b1080

View file

@ -82,10 +82,10 @@ namespace Flow.Launcher.Core.Plugin
public override async ValueTask DisposeAsync()
{
await base.DisposeAsync();
ClientProcess.Kill(true);
await ClientProcess.WaitForExitAsync();
ClientProcess.Dispose();
await base.DisposeAsync();
}
}
}