diff --git a/src/SimpleRecurringJobs.Postgres/PostgresJobStore.cs b/src/SimpleRecurringJobs.Postgres/PostgresJobStore.cs index ae08552..1d9aa3b 100644 --- a/src/SimpleRecurringJobs.Postgres/PostgresJobStore.cs +++ b/src/SimpleRecurringJobs.Postgres/PostgresJobStore.cs @@ -93,7 +93,7 @@ public async Task Retrieve(IJob job) { Value = job.Id }); - var reader = await cmd.ExecuteReaderAsync(); + await using var reader = await cmd.ExecuteReaderAsync(); if (!await reader.ReadAsync()) return JobInfo.CreateDefaultInfo(job.Id);