Skip to content

Commit

Permalink
Fix closing network transport (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhpijnacker authored Feb 16, 2023
1 parent 48a02bd commit c7ab26a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RFXtrx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ def reset(self):
def close(self):
""" close connection to rfxtrx device """
self._run_event.clear()
self.sock.shutdown(socket.SHUT_RDWR)
self.sock.close()


Expand Down

0 comments on commit c7ab26a

Please sign in to comment.