avoid hanging in case of shutdown errors (SPR-7511)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3622 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
5cf889307a
commit
b8fbe4650e
|
|
@ -977,6 +977,7 @@ public class DefaultMessageListenerContainer extends AbstractPollingMessageListe
|
|||
handleListenerSetupFailure(ex, true);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
synchronized (lifecycleMonitor) {
|
||||
decreaseActiveInvokerCount();
|
||||
lifecycleMonitor.notifyAll();
|
||||
|
|
@ -1011,6 +1012,7 @@ public class DefaultMessageListenerContainer extends AbstractPollingMessageListe
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean executeOngoingLoop() throws JMSException {
|
||||
boolean messageReceived = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue