Merge pull request #2757 from Flow-Launcher/jsonrpc-v2-close-order

fix process exited before calling "close" method on dispose.
This commit is contained in:
Yan 2024-06-06 07:43:01 +06:00 committed by GitHub
commit 53c937ede2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();
}
}
}