Skip to content

Commit

Permalink
Raise timeout exception on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus committed Feb 10, 2024
1 parent 701881e commit 084deb0
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 @@ -1011,6 +1011,7 @@ def connect(self, timeout=None):
self._thread.start()
if not self._run_event.wait(timeout):
self.close_connection()
raise TimeoutError()

def _connect(self):
try:
Expand Down

0 comments on commit 084deb0

Please sign in to comment.