Skip to content

Commit 01c9103

Browse files
committed
Reload types should close the connection.
1 parent fe4269f commit 01c9103

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/EFCore.PG/Storage/Internal/NpgsqlDatabaseCreator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ await Dependencies.MigrationCommandExecutor.ExecuteNonQueryAsync(commands, conne
396396
{
397397
await npgsqlConnection.ReloadTypesAsync(cancellationToken).ConfigureAwait(false);
398398
}
399-
catch
399+
finally
400400
{
401401
await npgsqlConnection.CloseAsync().ConfigureAwait(false);
402402
}

0 commit comments

Comments
 (0)