fixed non completing downloads after v4

This commit is contained in:
marcopiovanello
2026-07-14 10:17:58 +02:00
parent 143cc28a97
commit f40ad8da78
8 changed files with 47 additions and 126 deletions
+1
View File
@@ -274,6 +274,7 @@ func gracefulShutdown(ctx context.Context, srv *http.Server, cfg *serverConfig)
slog.Info("shutdown signal received")
defer func() {
cfg.mdb.Snapshot()
cfg.db.Close()
srv.Shutdown(context.Background())
}()