Browse Source

Properly dispose dbContext in MigrateUserDb

Bond_009 1 year ago
parent
commit
c45dd5d6fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs

+ 1 - 1
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");