Skip to content

Commit

Permalink
Resetting subscribed topics list before resubscribing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Bennett committed Apr 17, 2020
1 parent 5ebb33d commit dbb1b93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adafruit_minimqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbb1b93

Please sign in to comment.