Merge pull request #7508 from greut/docker-drain-timer
docker: drain fingerprint timer
This commit is contained in:
commit
4b6aee24bd
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue