Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 authored Jan 31, 2024
1 parent 701a9e1 commit 884266c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aiomqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,8 @@ async def __aexit__(
tb: TracebackType | None,
) -> None:
"""Disconnect from the broker."""

self.messages = None

if self._disconnected.done():
# Return early if the client is already disconnected
if self._lock.locked():
Expand Down

0 comments on commit 884266c

Please sign in to comment.