'Put a stop to any attempt to reconnect in progress.'

def stopTrying(self):

    if self._callID:
        self._callID.cancel()
        self._callID = None
    self.continueTrying = 0
    if self.connector:
        try:
            self.connector.stopConnecting()
        except error.NotConnectingError:
            pass
