summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/cache/cache.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/cache/cache.go b/internal/cache/cache.go
index 88e4f870a..7844c03f8 100644
--- a/internal/cache/cache.go
+++ b/internal/cache/cache.go
@@ -144,8 +144,12 @@ func (c *Caches) Start() error {
func (c *Caches) Stop() {
log.Infof(nil, "stop: %p", c)
- _ = c.Webfinger.Stop()
- _ = c.StatusesFilterableFields.Stop()
+ if c.Webfinger != nil {
+ _ = c.Webfinger.Stop()
+ }
+ if c.StatusesFilterableFields != nil {
+ _ = c.StatusesFilterableFields.Stop()
+ }
}
// Sweep will sweep all the available caches to ensure none