This commit is contained in:
Clebert Suconic 2018-02-21 16:19:42 -05:00
commit 6674935e87
1 changed files with 1 additions and 2 deletions

View File

@ -482,8 +482,6 @@ public final class ClientConsumerImpl implements ClientConsumerInternal {
@Override
public void stop(final boolean waitForOnMessage) throws ActiveMQException {
waitForOnMessageToComplete(waitForOnMessage);
if (browseOnly) {
// stop shouldn't affect browser delivery
return;
@ -496,6 +494,7 @@ public final class ClientConsumerImpl implements ClientConsumerInternal {
stopped = true;
}
waitForOnMessageToComplete(waitForOnMessage);
}
@Override