async def close(self): """Close connection and release allocated resources.""" if net.is_custom_session(self._session): await self._session.close() if self.listener: self.listener.connection_closed()
async def close(self): """Call to free allocated resources after pairing.""" if net.is_custom_session(self.session): await self.session.close()
async def close(self): """Close connection and release allocated resources.""" if net.is_custom_session(self._session): await self._session.close() self._protocol.stop()