Fix issue with failing test from previous commit
Issue: SPR-9611
This commit is contained in:
parent
6cc512b51c
commit
5a365074c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue