'If `banaction` set, clears blacklisted IPs.'

def stop(self):

    if (self.banaction is not None):
        if self._timer:
            self._timer.cancel()
            self._timer = None
        self._unbanIPs(self._bannedips.copy())
