Skip to content

Commit

Permalink
[CLIENT-3022] Close() throws a nil point error on ProxyClient without…
Browse files Browse the repository at this point in the history
… Authentication
  • Loading branch information
khaf committed Jul 1, 2024
1 parent cd4355c commit df5bcf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxy_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ func (clnt *ProxyClient) createGrpcConn(noInterceptor bool) (*grpc.ClientConn, E
// Close closes all Grpcclient connections to database server nodes.
func (clnt *ProxyClient) Close() {
clnt.active.Set(false)
clnt.authInterceptor.close()
if clnt.authInterceptor != nil {
clnt.authInterceptor.close()
}
}

// IsConnected determines if the Grpcclient is ready to talk to the database server cluster.
Expand Down

0 comments on commit df5bcf4

Please sign in to comment.