1
0
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:
Nick Craig-Wood
2025-07-30 17:40:17 +01:00
parent db4812fbfa
commit d3e3af377a

View File

@@ -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)
})
}