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.
2 parents ccb0c36 + 7d4f429 commit 2b0358eCopy full SHA for 2b0358e
adafruit_wiznet5k/adafruit_wiznet5k_socket.py
@@ -406,6 +406,9 @@ def accept(
406
and 0 < self._timeout < ticks_diff(ticks_ms(), stamp) / 1000
407
):
408
raise TimeoutError("Failed to accept connection.")
409
+ if self._status == wiznet5k.adafruit_wiznet5k.SNSR_SOCK_CLOSE_WAIT:
410
+ self._disconnect()
411
+ self.listen()
412
if self._status == wiznet5k.adafruit_wiznet5k.SNSR_SOCK_CLOSED:
413
self.close()
414
self.listen()
0 commit comments