From c45dd5d6fb029a06b6122b8ab4798efeb4acb85f Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Thu, 16 May 2024 10:58:32 +0200 Subject: [PATCH] Properly dispose dbContext in MigrateUserDb --- Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs index 4fee88b68c..808c5e33b0 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs @@ -67,7 +67,7 @@ namespace Jellyfin.Server.Migrations.Routines using (var connection = new SqliteConnection($"Filename={Path.Combine(dataPath, DbFilename)}")) { connection.Open(); - var dbContext = _provider.CreateDbContext(); + using var dbContext = _provider.CreateDbContext(); var queryResult = connection.Query("SELECT * FROM LocalUsersv2");