Fix #4472 a better way

Unlike switch, select will randomly choose from among multiple cases if
more than one are satisfiable.
This commit is contained in:
Jeff Mitchell 2018-05-07 16:13:02 -04:00
parent e2bb955673
commit 58bc941b71
1 changed files with 1 additions and 4 deletions

View File

@ -166,10 +166,7 @@ func (r *Renewer) Renew() {
result = r.renewLease()
}
select {
case r.doneCh <- result:
case <-r.stopCh:
}
r.doneCh <- result
}
// renewAuth is a helper for renewing authentication.