Skip to content

Commit 5a36507

Browse files
committed
Fix issue with failing test from previous commit
Issue: SPR-9611
1 parent 6cc512b commit 5a36507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-orm/src/main/java/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ protected void doFilterInternal(
217217
closeSession(sessionHolder.getSession(), sessionFactory);
218218
}
219219
else {
220-
if (!chain.pop()) {
220+
if (chain.isAsyncStarted()) {
221221
throw new IllegalStateException("Deferred close is not supported with async requests.");
222222
}
223223
// deferred close mode

0 commit comments

Comments
 (0)