fixup! docker: drain fingerprint timer

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
Yoan Blanc 2020-03-26 16:02:20 +01:00
parent 5f0b3234f0
commit 139a0ae451
No known key found for this signature in database
GPG Key ID: 6058CF4574298812
1 changed files with 1 additions and 1 deletions

View File

@ -60,8 +60,8 @@ func (d *Driver) fingerprintSuccessful() bool {
func (d *Driver) handleFingerprint(ctx context.Context, ch chan *drivers.Fingerprint) {
defer close(ch)
ticker := time.NewTimer(0)
ticker := time.NewTimer(0)
defer func() {
// Ensures that the channel is empty by stopping and draining the ticker.
if !ticker.Stop() {