Skip to content

Commit

Permalink
Fix connection leak in Postgres implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
asleire committed Sep 11, 2023
1 parent d2f8794 commit b9887ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimpleRecurringJobs.Postgres/PostgresJobStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public async Task<JobInfo> 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);
Expand Down

0 comments on commit b9887ce

Please sign in to comment.