git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@734364 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2009-01-14 12:19:15 +00:00
parent 20006a030d
commit d89abe0322
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ public abstract class PrefetchSubscription extends AbstractSubscription {
* timeout was setup, then send the NULL message.
*/
final void pullTimeout(long dispatchCounterBeforePull) {
if (dispatchCounterBeforePull == dispatchCounter) {
synchronized (pendingLock) {
synchronized (pendingLock) {
if (dispatchCounterBeforePull == dispatchCounter) {
try {
add(QueueMessageReference.NULL_MESSAGE);
dispatchPending();