diff --git a/adafruit_minimqtt.py b/adafruit_minimqtt.py index 9f83f30..339c009 100644 --- a/adafruit_minimqtt.py +++ b/adafruit_minimqtt.py @@ -615,6 +615,7 @@ def reconnect(self, resub_topics=True): "Attempting to resubscribe to previously subscribed topics." ) subscribed_topics = self._subscribed_topics.copy() + self._subscribed_topics = [] while subscribed_topics: feed = subscribed_topics.pop() self.subscribe(feed)