Merge pull request #6517 from hashicorp/b-fingerprint-shutdown-race

client: don't retry fingerprinting on shutdown
This commit is contained in:
Mahmood Ali
2020-07-24 11:56:32 -04:00
committed by GitHub

View File

@@ -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 {