Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

itmagination
Copy link
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.

@gliljas gliljas merged commit 36100cc into nhibernate:master Jan 4, 2017
@gliljas
Copy link
Member

gliljas commented Jan 4, 2017

Thanks!

@hazzik hazzik modified the milestones: 5.0.0, 4.1.0, 4.2.0 Feb 28, 2017
@hazzik hazzik added the r: Fixed label Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants