Check ac state shutdown before setting it to TransientFailure (#1643)
This commit is contained in:
@ -1037,6 +1037,10 @@ func (ac *addrConn) transportMonitor() {
|
||||
default:
|
||||
}
|
||||
ac.mu.Lock()
|
||||
if ac.state == connectivity.Shutdown {
|
||||
ac.mu.Unlock()
|
||||
return
|
||||
}
|
||||
// Set connectivity state to TransientFailure before calling
|
||||
// resetTransport. Transition READY->CONNECTING is not valid.
|
||||
ac.state = connectivity.TransientFailure
|
||||
|
Reference in New Issue
Block a user