'Call this method after a successful connection: it resets the delay and
the retry counter.'

def resetDelay(self):

    self.delay = self.initialDelay
    self.retries = 0
    self._callID = None
    self.continueTrying = 1
