Commit 41ee727aba461e350458a6ea53267b796c8e867f

Authored by Wiebe Cazemier
1 parent 65456655

Fix double publish of will

Showing 1 changed file with 0 additions and 6 deletions
client.cpp
@@ -53,12 +53,6 @@ Client::~Client() @@ -53,12 +53,6 @@ Client::~Client()
53 { 53 {
54 std::shared_ptr<SubscriptionStore> &store = getThreadData()->getSubscriptionStore(); 54 std::shared_ptr<SubscriptionStore> &store = getThreadData()->getSubscriptionStore();
55 55
56 - // Will payload can be empty, apparently.  
57 - if (willPublish)  
58 - {  
59 - store->queueWillMessage(willPublish);  
60 - }  
61 -  
62 if (disconnectReason.empty()) 56 if (disconnectReason.empty())
63 disconnectReason = "not specified"; 57 disconnectReason = "not specified";
64 58