Browse Source

[bugfix] Avoid nil ptr if maintenance router can't be started (#3919)

pull/3922/head
tobi 1 year ago committed by GitHub
parent
commit
657e064bf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      internal/cache/cache.go

8
internal/cache/cache.go vendored

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

Loading…
Cancel
Save