mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Avoid nil ptr if maintenance router can't be started (#3919)
This commit is contained in:
4
internal/cache/cache.go
vendored
4
internal/cache/cache.go
vendored
@@ -144,9 +144,13 @@ func (c *Caches) Start() error {
|
||||
func (c *Caches) Stop() {
|
||||
log.Infof(nil, "stop: %p", c)
|
||||
|
||||
if c.Webfinger != nil {
|
||||
_ = c.Webfinger.Stop()
|
||||
}
|
||||
if c.StatusesFilterableFields != nil {
|
||||
_ = c.StatusesFilterableFields.Stop()
|
||||
}
|
||||
}
|
||||
|
||||
// Sweep will sweep all the available caches to ensure none
|
||||
// are above threshold percent full to their total capacity.
|
||||
|
Reference in New Issue
Block a user