fixup! docker: drain fingerprint timer
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
parent
5f0b3234f0
commit
139a0ae451
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue