mirror of https://github.com/grpc/grpc-go.git
internal/stubserver: Close Client Conn in error handling of Start (#6174)
This commit is contained in:
parent
06de8f851e
commit
6237dfe701
|
|
@ -133,6 +133,7 @@ func (ss *StubServer) StartClient(dopts ...grpc.DialOption) error {
|
|||
ss.R.UpdateState(resolver.State{Addresses: []resolver.Address{{Addr: ss.Address}}})
|
||||
}
|
||||
if err := waitForReady(cc); err != nil {
|
||||
cc.Close()
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue