Additional check if child session has already been closed during parent session closing. #542

Merged
merged 1 commit into from Jan 4, 2017

Projects

None yet

2 participants

@itmagination
Contributor

This simple fix prevents unnecessary SessionException("Session was already closed") throw when both parent session and child session are closed separately (order does not matter). Before invoking close on child session (during parent session close) we should check if child session has not been closed already.

Wojciech Stelmaszewski Additional check if child session has already been closed during pare…
…nt session closing.
2225bd9
@gliljas
gliljas approved these changes Jan 4, 2017 View changes
@gliljas gliljas merged commit 36100cc into nhibernate:master Jan 4, 2017

10 of 11 checks passed

NHibernate Oracle 32 (NHibernate) TeamCity build failed
Details
NHibernate (NHibernate) TeamCity build finished
Details
NHibernate (Release Package) (NHibernate) TeamCity build finished
Details
NHibernate Firebird 32 (NHibernate) TeamCity build finished
Details
NHibernate MySql (NHibernate) TeamCity build finished
Details
NHibernate Oracle Managed 32 (NHibernate) TeamCity build finished
Details
NHibernate PostgreSQL (NHibernate) TeamCity build finished
Details
NHibernate SQL Server ODBC (NHibernate) TeamCity build finished
Details
NHibernate SQLite 32 (NHibernate) TeamCity build finished
Details
NHibernate SqlServer 2012 (NHibernate) TeamCity build finished
Details
NHibernate SqlServerCe 32 (NHibernate) TeamCity build finished
Details
@gliljas
Member
gliljas commented Jan 4, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment