diff --git a/adafruit_wiznet5k/adafruit_wiznet5k_socketpool.py b/adafruit_wiznet5k/adafruit_wiznet5k_socketpool.py index e1e2512..0509a63 100644 --- a/adafruit_wiznet5k/adafruit_wiznet5k_socketpool.py +++ b/adafruit_wiznet5k/adafruit_wiznet5k_socketpool.py @@ -264,7 +264,7 @@ def __exit__(self, exc_type, exc_val, exc_tb) -> None: self._interface.release_socket(self._socknum) if self._sock_type == SocketPool.SOCK_STREAM: self._interface.write_snir( - self._socknum, 0xFF + self._socknum, 0xFF & (~wiznet5k.adafruit_wiznet5k.SNIR_DISCON) ) # Reset socket interrupt register. self._interface.socket_disconnect(self._socknum) mask = (