From f1cd150efb6d0304e93774e2eeffeba6df2cf8a6 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Wed, 22 Sep 2021 21:25:36 +0200 Subject: [PATCH] Clean senderHoles from deleted subscriber --- src/TopicTree.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TopicTree.h b/src/TopicTree.h index 463f7e7..6567008 100644 --- a/src/TopicTree.h +++ b/src/TopicTree.h @@ -473,6 +473,9 @@ public: topic->subs.erase(subscriber); trimTree(topic); } + /* If we are sender with outstanding holes, remove them now that we are dead */ + senderHoles.erase(subscriber); + subscriber->subscriptions.clear(); } }