summaryrefslogtreecommitdiff
path: root/cpp/lib
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib')
-rw-r--r--cpp/lib/broker/BrokerQueue.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/lib/broker/BrokerQueue.cpp b/cpp/lib/broker/BrokerQueue.cpp
index 051b9d1e0f..4eabfdec50 100644
--- a/cpp/lib/broker/BrokerQueue.cpp
+++ b/cpp/lib/broker/BrokerQueue.cpp
@@ -64,6 +64,9 @@ void Queue::deliver(Message::shared_ptr& msg){
void Queue::recover(Message::shared_ptr& msg){
queueing = true;
messages.push(msg);
+ if (store && msg->expectedContentSize() != msg->encodedContentSize()) {
+ msg->releaseContent(store);
+ }
}
void Queue::process(Message::shared_ptr& msg){