diff --git a/client/pluginmanager/drivermanager/instance.go b/client/pluginmanager/drivermanager/instance.go index b9581403a..863fb6492 100644 --- a/client/pluginmanager/drivermanager/instance.go +++ b/client/pluginmanager/drivermanager/instance.go @@ -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 {