mirror of
https://github.com/rclone/rclone.git
synced 2025-08-10 06:09:44 +02:00
oauthutil: fix nil pointer crash when started with expired token
This commit is contained in:
@@ -88,7 +88,9 @@ func (r *Renew) Shutdown() {
|
||||
}
|
||||
// closing a channel can only be done once
|
||||
r.shutdown.Do(func() {
|
||||
if r.ts != nil {
|
||||
r.ts.expiryTimer.Stop()
|
||||
}
|
||||
close(r.done)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user