From 464d0de3ec6b13a65092a1fbafa9a3579818f834 Mon Sep 17 00:00:00 2001 From: Ben Merckx Date: Mon, 20 Nov 2023 09:09:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=99=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/Handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/Handler.ts b/src/backend/Handler.ts index 201dc8b49..9d9d53c0d 100644 --- a/src/backend/Handler.ts +++ b/src/backend/Handler.ts @@ -100,7 +100,7 @@ export class Handler { } async periodicSync() { - if (Date.now() - this.lastSync > 1_000) return + if (Date.now() - this.lastSync < 5_000) return try { await this.syncPending() } catch {}