Merge pull request #6517 from hashicorp/b-fingerprint-shutdown-race
client: don't retry fingerprinting on shutdown
This commit is contained in:
commit
2d0b80a0ed
|
@ -313,6 +313,12 @@ func (i *instanceManager) fingerprint() {
|
|||
continue
|
||||
}
|
||||
|
||||
// avoid fingerprinting again if ctx and fpChan both close
|
||||
if i.ctx.Err() != nil {
|
||||
cancel()
|
||||
return
|
||||
}
|
||||
|
||||
// if the channel is closed attempt to open a new one
|
||||
newFpChan, newCancel, err := i.dispenseFingerprintCh()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue