diff --git a/subscriptionstore.cpp b/subscriptionstore.cpp index 71b48ad..af34ffd 100644 --- a/subscriptionstore.cpp +++ b/subscriptionstore.cpp @@ -423,9 +423,9 @@ uint64_t SubscriptionStore::giveClientRetainedMessages(const std::shared_ptr possibleQos0Copy; for(MqttPacket &packet : packetList) { + std::shared_ptr possibleQos0Copy; ses->writePacket(packet, max_qos, possibleQos0Copy, count); }