Fix issue with failing test from previous commit
Issue: SPR-9611
This commit is contained in:
@@ -217,7 +217,7 @@ public class OpenSessionInViewFilter extends OncePerRequestFilter {
|
|||||||
closeSession(sessionHolder.getSession(), sessionFactory);
|
closeSession(sessionHolder.getSession(), sessionFactory);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!chain.pop()) {
|
if (chain.isAsyncStarted()) {
|
||||||
throw new IllegalStateException("Deferred close is not supported with async requests.");
|
throw new IllegalStateException("Deferred close is not supported with async requests.");
|
||||||
}
|
}
|
||||||
// deferred close mode
|
// deferred close mode
|
||||||
|
|||||||
Reference in New Issue
Block a user