Skip to content

Commit

Permalink
remove (now) duplicated SNSR_SOCK_CLOSE_WAIT
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Apr 22, 2024
1 parent c59c4fd commit 6a90f75
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions adafruit_wiznet5k/adafruit_wiznet5k_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,6 @@ def accept(
if self._status == wiznet5k.adafruit_wiznet5k.SNSR_SOCK_CLOSED:
self.close()
self.listen()
if self._status == wiznet5k.adafruit_wiznet5k.SNSR_SOCK_CLOSE_WAIT:
self._disconnect()
self.listen()

_, addr = _the_interface.socket_accept(self._socknum)
current_socknum = self._socknum
Expand Down

0 comments on commit 6a90f75

Please sign in to comment.