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
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