From d5dd3f8f511a8a65fee57db156cffdff3543e502 Mon Sep 17 00:00:00 2001 From: emerson Date: Tue, 1 Feb 2022 17:46:14 -0500 Subject: [PATCH] give the server a bit of leniency before complaining about lag --- src/IRCUser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCUser.ts b/src/IRCUser.ts index 1e892d0..49117f7 100644 --- a/src/IRCUser.ts +++ b/src/IRCUser.ts @@ -144,7 +144,7 @@ export class IRCUser { return; } if (this.isSyncing) { - if ((Date.now() - this.currentSyncTime) > 15000) + if ((Date.now() - this.currentSyncTime) > 20000) console.log(`Sync is lagging, current sync has been running for ${Date.now() - this.currentSyncTime} milliseconds`); return; }