Skip to content

Commit

Permalink
another missing revert
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Jan 19, 2024
1 parent 5f6af6c commit 70eba85
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions adafruit_minimqtt/adafruit_minimqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,10 +909,11 @@ def unsubscribe(self, topic: str) -> None:
if self.on_unsubscribe is not None:
self.on_unsubscribe(self, self._user_data, t, self._pid)
self._subscribed_topics.remove(t)
else:
raise MMQTTException(
f"invalid message received as response to UNSUBSCRIBE: {hex(op)}"
)
return

raise MMQTTException(
f"invalid message received as response to UNSUBSCRIBE: {hex(op)}"
)

def _recompute_reconnect_backoff(self) -> None:
"""
Expand Down

0 comments on commit 70eba85

Please sign in to comment.