def resetDelay(self):
        """
        Call this method after a successful connection: it resets the delay and
        the retry counter.
        """
        self.delay = self.initialDelay
        self.retries = 0
        self._callID = None
        self.continueTrying = 1

        Call this method after a successful connection: it resets the delay and
        the retry counter.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/protocol.py