mirror of https://github.com/grpc/grpc-go.git
close ready when ClientConn closes
This commit is contained in:
parent
c73e40b804
commit
28ad38be17
|
|
@ -244,6 +244,10 @@ func (cc *ClientConn) Close() error {
|
|||
return ErrClientConnClosing
|
||||
}
|
||||
cc.closing = true
|
||||
if cc.ready != nil {
|
||||
close(cc.ready)
|
||||
cc.ready = nil
|
||||
}
|
||||
if cc.transport != nil {
|
||||
cc.transport.Close()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue