Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Aug 11, 2024
1 parent 8e641be commit 686a820
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions aiohomekit/controller/ip/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,6 @@ async def _connect_once(self) -> None:
raise TimeoutError("Timeout") from last_exception
raise ConnectionError(str(last_exception)) from last_exception

logger.debug("Connected established to %s:%s", self.hosts, self.port)
# set keep-alive on the socket to ensure we detect dropped connections
# since we don't send keep-alive packets ourselves
sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
Expand All @@ -621,9 +620,7 @@ async def _connect_once(self) -> None:
self.host_header = f"Host: [{connected_host}]"
else:
self.host_header = f"Host: {connected_host}"

if self.owner:
logger.debug("Connection made to %s:%s", self.hosts, self.port)
await self.owner.connection_made(False)

async def _reconnect(self) -> None:
Expand Down

0 comments on commit 686a820

Please sign in to comment.