fix: harden security resource lifecycles

This commit is contained in:
Andy Dixon
2026-07-29 12:37:02 +01:00
parent f0a1a0b8f2
commit b5c7528160
17 changed files with 460 additions and 76 deletions
+5 -1
View File
@@ -118,8 +118,12 @@ func (a *App) Shutdown(ctx context.Context) {
a.mu.Lock()
defer a.mu.Unlock()
if a.Service != nil {
a.Service.Shutdown()
}
if a.SessionManager != nil {
a.SessionManager.CloseAll()
a.SessionManager.Shutdown()
}
if a.Store != nil {