Skip to content

Commit 2ab1f1e

Browse files
author
Jim Bennett
committed
Resetting subscribed topics list before resubscribing
1 parent a391cce commit 2ab1f1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_minimqtt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ def reconnect(self, resub_topics=True):
615615
"Attempting to resubscribe to previously subscribed topics."
616616
)
617617
subscribed_topics = self._subscribed_topics.copy()
618+
self._subscribed_topics = []
618619
while subscribed_topics:
619620
feed = subscribed_topics.pop()
620621
self.subscribe(feed)

0 commit comments

Comments
 (0)