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 0659bb5 commit 4fe3fe9Copy full SHA for 4fe3fe9
adafruit_wiznet5k/adafruit_wiznet5k_socketpool.py
@@ -705,6 +705,8 @@ def close(self) -> None:
705
Mark the socket closed. Once that happens, all future operations on the socket object
706
will fail. The remote end will receive no more data.
707
"""
708
+ if self._sock_type == SocketPool.SOCK_STREAM:
709
+ self._disconnect()
710
self._interface.release_socket(self._socknum)
711
self._interface.socket_close(self._socknum)
712
self._socket_closed = True
0 commit comments