summaryrefslogtreecommitdiffstats
path: root/lib/private/Security/Bruteforce/CleanupJob.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-01-31 21:23:07 +0100
committerJoas Schilling <coding@schilljs.com>2022-02-07 13:54:54 +0100
commitb8e0a3dbdd61877050328c9ed5ad72922c330a97 (patch)
tree1bb438e6653850873906400130d4320649cb4c3e /lib/private/Security/Bruteforce/CleanupJob.php
parent3fd55cb4df80b6434cc5f028f80f1419b3f79202 (diff)
downloadnextcloud-server-b8e0a3dbdd61877050328c9ed5ad72922c330a97.tar.gz
nextcloud-server-b8e0a3dbdd61877050328c9ed5ad72922c330a97.zip
Use the new option to signaling insensitivity
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Security/Bruteforce/CleanupJob.php')
-rw-r--r--lib/private/Security/Bruteforce/CleanupJob.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Security/Bruteforce/CleanupJob.php b/lib/private/Security/Bruteforce/CleanupJob.php
index 1e5f83360d5..6faf853760a 100644
--- a/lib/private/Security/Bruteforce/CleanupJob.php
+++ b/lib/private/Security/Bruteforce/CleanupJob.php
@@ -26,6 +26,7 @@ declare(strict_types=1);
namespace OC\Security\Bruteforce;
use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\IJob;
use OCP\BackgroundJob\TimedJob;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
@@ -41,6 +42,7 @@ class CleanupJob extends TimedJob {
// Run once a day
$this->setInterval(3600 * 24);
+ $this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
}
protected function run($argument) {