Skip to content

Commit

Permalink
Fix: pop publish waiters
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jun 11, 2023
1 parent 0a46756 commit 0274730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mauigpapi/mqtt/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ async def _post_connect(self) -> None:

def _on_publish_handler(self, client: MQTToTClient, _: Any, mid: int) -> None:
try:
waiter = self._publish_waiters[mid]
waiter = self._publish_waiters.pop(mid)
except KeyError:
self.log.trace(f"Got publish confirmation for {mid}, but no waiters")
return
Expand Down

0 comments on commit 0274730

Please sign in to comment.