def SendingTask(self): sends = self.RunSend() self.sendTaskDelay = misc.LoopAttenuation( self.sendTaskDelay, sends > 0, settings.MinimumSendingDelay(), settings.MaximumSendingDelay()) # attenuation self.sendTask = reactor.callLater(self.sendTaskDelay, self.SendingTask)
def SendingTask(self): if self.shutdown: self.StopAllSindings() return sends = self.RunSend() self.sendTaskDelay = misc.LoopAttenuation( self.sendTaskDelay, sends > 0, settings.MinimumSendingDelay(), settings.MaximumSendingDelay()) # attenuation self.sendTask = reactor.callLater( self.sendTaskDelay, self.SendingTask) # @UndefinedVariable