mirror of
https://github.com/marcopiovanello/yt-dlp-web-ui.git
synced 2026-07-25 06:54:30 +00:00
fixed non completing downloads after v4
This commit is contained in:
@@ -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())
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user