mirror of
https://github.com/rclone/rclone.git
synced 2026-10-09 14:39:28 -04:00
Shutdown was calling expiryTimer.Stop without holding ts.mu, so it could panic if OnExpiry had not created the timer yet, and raced the write in OnExpiry. Hold the lock and skip Stop when the timer is still nil. Fixes #9980