From 41ee727aba461e350458a6ea53267b796c8e867f Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Mon, 4 Apr 2022 21:17:43 +0200 Subject: [PATCH] Fix double publish of will --- client.cpp | 6 ------ 1 file changed, 0 insertions(+), 6 deletions(-) diff --git a/client.cpp b/client.cpp index e4c84ee..03fb9bd 100644 --- a/client.cpp +++ b/client.cpp @@ -53,12 +53,6 @@ Client::~Client() { std::shared_ptr &store = getThreadData()->getSubscriptionStore(); - // Will payload can be empty, apparently. - if (willPublish) - { - store->queueWillMessage(willPublish); - } - if (disconnectReason.empty()) disconnectReason = "not specified"; -- libgit2 0.21.4