#20434: Better transaction disposal

Work Item: 20434
This commit is contained in:
Jim Macdonald
2014-03-20 16:17:27 -07:00
committed by Sebastien Ros
parent 42f1583db3
commit e96c392479

View File

@@ -87,14 +87,14 @@ namespace Orchard.Data {
Logger.Debug("Reverting operations from transaction");
_transaction.Rollback();
}
_transaction.Dispose();
Logger.Debug("Transaction disposed");
}
catch (Exception e) {
Logger.Error(e, "Error while disposing the transaction.");
}
finally {
_transaction.Dispose();
Logger.Debug("Transaction disposed");
_transaction = null;
_cancelled = false;
}