Close full text search index on dendrite shutdown

This commit is contained in:
Devon Hudson 2023-01-20 11:52:10 -07:00
parent 3b76c776f6
commit 33cdc5adb7
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -595,6 +595,9 @@ func (b *BaseDendrite) WaitForShutdown() {
logrus.Warnf("failed to flush all Sentry events!")
}
}
if b.Fulltext != nil {
b.Fulltext.Close()
}
logrus.Warnf("Dendrite is exiting now")
}