This commit is contained in:
binwiederhier
2026-03-25 21:12:27 -04:00
parent db6f813386
commit 2770f65027
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -433,14 +433,18 @@ func (s *Server) Stop() {
s.attachment.Close()
}
s.closeDatabases()
close(s.closeChan)
if s.closeChan != nil {
close(s.closeChan)
}
}
func (s *Server) closeDatabases() {
if s.userManager != nil {
s.userManager.Close()
}
s.messageCache.Close()
if s.messageCache != nil {
s.messageCache.Close()
}
if s.webPush != nil {
s.webPush.Close()
}