Skip to content

Commit

Permalink
Minor fix in stop method, use correct property to check if the client…
Browse files Browse the repository at this point in the history
… is connected
  • Loading branch information
dhoomakethu committed May 10, 2018
1 parent 94a8831 commit b8faf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymodbus/client/async/asyncio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def stop(self):
Stops connection
:return:
"""
if self._connected.is_set():
if self._connected:
if self.protocol:
if self.protocol.transport:
self.protocol.transport.close()
Expand Down

0 comments on commit b8faf33

Please sign in to comment.