Skip to content
5 changes: 3 additions & 2 deletions zeroconf/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ def _async_shutdown(self) -> None:
"""Shutdown transports and sockets."""
for transport in itertools.chain(self.senders, self.readers):
transport.close()
for s in self._respond_sockets:
s.close()

def close(self) -> None:
"""Close from sync context."""
Expand Down Expand Up @@ -328,6 +326,9 @@ def error_received(self, exc: Exception) -> None:
def connection_made(self, transport: asyncio.BaseTransport) -> None:
self.transport = cast(asyncio.DatagramTransport, transport)

def connection_lost(self, exc: Optional[Exception]) -> None:
"""Handle connection lost."""


class Zeroconf(QuietLogger):

Expand Down