fixup! fixup! Further pursue of perfection.

This commit is contained in:
2025-09-05 00:22:13 +01:00
parent f291dcca26
commit 2c902eaafb
11 changed files with 238 additions and 63 deletions
+3 -1
View File
@@ -263,7 +263,9 @@ func (tc *TokenCache) Delete(token string) {
// This is typically called automatically but can be invoked manually for
// removing expired token entries.
func (tc *TokenCache) Cleanup() {
tc.cache.Cleanup()
if tc != nil && tc.cache != nil {
tc.cache.Cleanup()
}
}
// Close stops the cleanup goroutine and releases resources.