diff --git a/src/Hangfire.SqlServer/SqlServerJobQueue.cs b/src/Hangfire.SqlServer/SqlServerJobQueue.cs index c464a222e..7035c86cc 100644 --- a/src/Hangfire.SqlServer/SqlServerJobQueue.cs +++ b/src/Hangfire.SqlServer/SqlServerJobQueue.cs @@ -295,6 +295,7 @@ private SqlServerTransactionJob DequeueUsingTransaction(string[] queues, Cancell finally { transaction?.Dispose(); + transaction = null; _storage.ReleaseConnection(connection); }