Permalink
Browse files

Added checking if transaction is active before committing it.

  • Loading branch information...
1 parent e710cca commit 083bf319f3ee80ec9ef64c821643de489d77c5a7 @marek-stoj marek-stoj committed with Mar 23, 2012
@@ -130,7 +130,8 @@ public NHibernateSagaRepository(ISessionFactory sessionFactory)
}
}
- transaction.Commit();
+ if (transaction.IsActive)
+ transaction.Commit();
}
}

0 comments on commit 083bf31

Please sign in to comment.