def disconnect(self):
        """Disconnect whatever our are state is."""
        if self.connector is not None:
            self.connector.disconnect()
        else:
            self.stopConnecting()
Disconnect whatever our are state is.
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/srvconnect.py