acd: Fix panic on token expiry - fixes #1117
This commit is contained in:
parent
50e190ff54
commit
40c02989f1
2 changed files with 16 additions and 12 deletions
|
@ -62,3 +62,8 @@ func (r *Renew) Start() {
|
|||
func (r *Renew) Stop() {
|
||||
atomic.AddInt32(&r.uploads, -1)
|
||||
}
|
||||
|
||||
// Invalidate invalidates the token source
|
||||
func (r *Renew) Invalidate() {
|
||||
r.ts.Invalidate()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue