if (queueMode) {
// Out of the synchronized block because it could
// lead to a dead lock with
// the connection driver thread calling replyReceived.
ConsumerUnsetListRequest unsetLR = new ConsumerUnsetListRequest(
queueMode);
unsetLR.setTarget(targetName);
unsetLR.setCancelledRequestId(requestId);
rm.sendRequest(unsetLR);
}
// else useless for a topic
// because the subscription
// is deleted (see MessageConsumer.close())