Explorar el Código

Properly dispose dbContext in MigrateUserDb

Bond_009 hace 1 año
padre
commit
c45dd5d6fb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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");