mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 16:12:25 -05:00
[bugfix] Avoid nil ptr if maintenance router can't be started (#3919)
This commit is contained in:
parent
59aac290e4
commit
657e064bf6
1 changed files with 6 additions and 2 deletions
8
internal/cache/cache.go
vendored
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…
Add table
Add a link
Reference in a new issue