From 9d52bed9c1c98051edf80c50703844191a94ac94 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Fri, 20 Jan 2023 11:59:07 -0700 Subject: [PATCH] Check error and log when closing full text search --- setup/base/base.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/base/base.go b/setup/base/base.go index b6978d499..de8f81517 100644 --- a/setup/base/base.go +++ b/setup/base/base.go @@ -596,7 +596,10 @@ func (b *BaseDendrite) WaitForShutdown() { } } if b.Fulltext != nil { - b.Fulltext.Close() + err := b.Fulltext.Close() + if err != nil { + logrus.Warnf("failed to close full text search!") + } } logrus.Warnf("Dendrite is exiting now")