Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Add cancel context to NewGRPCClient (#720)
### PR Summary Bug fix to address the issue of java-external-provider.exe not ending after analysis completion. Introduces a cancel context to the NewGRPCClient to ensure proper termination of the gRPC client. - provider/grpc/provider.go: Added context.WithCancel to manage the lifecycle of the gRPC client and ensure it can be properly stopped. - provider/grpc/provider.go: Updated grpcProvider struct to include cancelCmd and invoked cancelCmd() in the Stop method to terminate the context. Signed-off-by: kthatipally <[email protected]>
- Loading branch information