示例#1
0
 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)
示例#2
0
 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