Fix issue with failing test from previous commit

Issue: SPR-9611
This commit is contained in:
Rossen Stoyanchev
2012-07-20 14:46:52 -04:00
parent 6cc512b51c
commit 5a365074c2

View File

@@ -217,7 +217,7 @@ public class OpenSessionInViewFilter extends OncePerRequestFilter {
closeSession(sessionHolder.getSession(), sessionFactory);
}
else {
if (!chain.pop()) {
if (chain.isAsyncStarted()) {
throw new IllegalStateException("Deferred close is not supported with async requests.");
}
// deferred close mode