Merge pull request #7508 from greut/docker-drain-timer

docker: drain fingerprint timer
This commit is contained in:
Mahmood Ali 2020-03-30 16:37:53 -04:00 committed by GitHub
commit 4b6aee24bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,10 @@ func (d *Driver) fingerprintSuccessful() bool {
func (d *Driver) handleFingerprint(ctx context.Context, ch chan *drivers.Fingerprint) {
defer close(ch)
ticker := time.NewTimer(0)
defer ticker.Stop()
for {
select {
case <-ctx.Done():