diff --git a/broadlink/__init__.py b/broadlink/__init__.py index 495e07c..f875f5b 100644 --- a/broadlink/__init__.py +++ b/broadlink/__init__.py @@ -274,9 +274,8 @@ class device: response = self.cs.recvfrom(1024) break except socket.timeout: - if (time.time() - starttime) < self.timeout: - pass - raise + if (time.time() - starttime) > self.timeout: + raise return bytearray(response[0])