Skip to content

Commit

Permalink
Close the doneCh in the renewer when we return from Renew. (#4513)
Browse files Browse the repository at this point in the history
Closes #4472
  • Loading branch information
jefferai authored May 4, 2018
1 parent eef0d36 commit 79c708f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/renewer.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ func (r *Renewer) Renew() {
result = r.renewLease()
}

defer close(r.doneCh)

select {
case r.doneCh <- result:
case <-r.stopCh:
Expand Down

0 comments on commit 79c708f

Please sign in to comment.