Skip to content

Commit

Permalink
Code review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
justmobilize committed Apr 30, 2024
1 parent cd9f892 commit b14ed99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adafruit_connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def __init__(self, socket: CircuitPythonSocketType, tls_mode: int) -> None:
self.recv = socket.recv
self.close = socket.close
self.recv_into = socket.recv_into
if hasattr(socket, "_interface"):
self._interface = socket._interface
if hasattr(socket, "_socket_pool"):
self._socket_pool = socket._socket_pool
# For sockets that come from software socketpools (like the esp32api), they track
# the interface and socket pool. We need to make sure the clones do as well
self._interface = getattr(socket, "_interface", None)
self._socket_pool = getattr(socket, "_socket_pool", None)

def connect(self, address: Tuple[str, int]) -> None:
"""Connect wrapper to add non-standard mode parameter"""
Expand Down

0 comments on commit b14ed99

Please sign in to comment.