ARTEMIS-1679 Stopping consumer no need to wait until all queued tasks done
This commit is contained in:
parent
5a169013e7
commit
898940f5bf
|
@ -482,8 +482,6 @@ public final class ClientConsumerImpl implements ClientConsumerInternal {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void stop(final boolean waitForOnMessage) throws ActiveMQException {
|
public void stop(final boolean waitForOnMessage) throws ActiveMQException {
|
||||||
waitForOnMessageToComplete(waitForOnMessage);
|
|
||||||
|
|
||||||
if (browseOnly) {
|
if (browseOnly) {
|
||||||
// stop shouldn't affect browser delivery
|
// stop shouldn't affect browser delivery
|
||||||
return;
|
return;
|
||||||
|
@ -496,6 +494,7 @@ public final class ClientConsumerImpl implements ClientConsumerInternal {
|
||||||
|
|
||||||
stopped = true;
|
stopped = true;
|
||||||
}
|
}
|
||||||
|
waitForOnMessageToComplete(waitForOnMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue