mirror of
https://github.com/rclone/rclone.git
synced 2025-11-23 21:44:49 +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
|
// closing a channel can only be done once
|
||||||
r.shutdown.Do(func() {
|
r.shutdown.Do(func() {
|
||||||
|
if r.ts != nil {
|
||||||
r.ts.expiryTimer.Stop()
|
r.ts.expiryTimer.Stop()
|
||||||
|
}
|
||||||
close(r.done)
|
close(r.done)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user