mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-22 15:10:12 +01:00
bug fix in timeout (#70)
This commit is contained in:
parent
d346476e63
commit
19851ed423
@ -274,8 +274,7 @@ class device:
|
||||
response = self.cs.recvfrom(1024)
|
||||
break
|
||||
except socket.timeout:
|
||||
if (time.time() - starttime) < self.timeout:
|
||||
pass
|
||||
if (time.time() - starttime) > self.timeout:
|
||||
raise
|
||||
return bytearray(response[0])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user