We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79425a6 commit bf54a08Copy full SHA for bf54a08
adafruit_esp32spi/adafruit_esp32spi_socket.py
@@ -91,7 +91,7 @@ def readline(self):
91
avail = min(_the_interface.socket_available(self._socknum), MAX_PACKET)
92
if avail:
93
self._buffer += _the_interface.socket_read(self._socknum, avail)
94
- elif time.monotonic() - stamp > self._timeout:
+ elif self._timeout > 0 and time.monotonic() - stamp > self._timeout:
95
self.close() # Make sure to close socket so that we don't exhaust sockets.
96
raise RuntimeError("Didn't receive full response, failing out")
97
firstline, self._buffer = self._buffer.split(b'\r\n', 1)
0 commit comments