diff options
Diffstat (limited to 'java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java')
-rw-r--r-- | java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java index 5a04e21355..58a424387c 100644 --- a/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java +++ b/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java @@ -125,14 +125,16 @@ public class QueuePurgeBody extends AMQMethodBodyImpl implements EncodableAMQDat return buf.toString(); } - public static void process(final int channelId, - final MarkableDataInput buffer, - final MethodProcessor dispatcher) throws IOException + public static void process(final MarkableDataInput buffer, + final ServerChannelMethodProcessor dispatcher) throws IOException { int ticket = buffer.readUnsignedShort(); AMQShortString queue = buffer.readAMQShortString(); boolean nowait = (buffer.readByte() & 0x01) == 0x01; - dispatcher.receiveQueuePurge(channelId, queue, nowait); + if(!dispatcher.ignoreAllButCloseOk()) + { + dispatcher.receiveQueuePurge(queue, nowait); + } } } |