|
|
|
@ -329,8 +329,10 @@ class Actions(JailThread, Mapping):
|
|
|
|
|
logSys.debug("Actions: leave idle mode")
|
|
|
|
|
continue
|
|
|
|
|
# wait for ban (stop if gets inactive):
|
|
|
|
|
bancnt = Utils.wait_for(lambda: not self.active or self.__checkBan(), self.sleeptime)
|
|
|
|
|
cnt += bancnt
|
|
|
|
|
bancnt = 0
|
|
|
|
|
if Utils.wait_for(lambda: not self.active or self._jail.hasFailTickets, self.sleeptime):
|
|
|
|
|
bancnt = self.__checkBan()
|
|
|
|
|
cnt += bancnt
|
|
|
|
|
# unban if nothing is banned not later than banned tickets >= banPrecedence
|
|
|
|
|
if not bancnt or cnt >= self.banPrecedence:
|
|
|
|
|
if self.active:
|
|
|
|
|