Skip to content

Commit

Permalink
release only if acquired
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 authored Sep 18, 2023
1 parent 5f0c94c commit de367bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiomqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,8 @@ async def __aexit__(
)
finally:
self._force_disconnect()
self._lock.release()
if self._lock.locked():
self._lock.release()


def _set_client_socket_defaults(
Expand Down

0 comments on commit de367bf

Please sign in to comment.