From bf51584f7f912136ab20ab1064c8e4f40de7af2b Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Thu, 19 Aug 2021 10:04:30 +0300 Subject: [PATCH] Service Worker: Fix freezing on new version (follow-up) --- src/api/gramjs/worker/provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/gramjs/worker/provider.ts b/src/api/gramjs/worker/provider.ts index 714a48cf..2198b896 100644 --- a/src/api/gramjs/worker/provider.ts +++ b/src/api/gramjs/worker/provider.ts @@ -13,7 +13,7 @@ type RequestStates = { callback?: AnyToVoidFunction; }; -const HEALTH_CHECK_TIMEOUT = 1000; // 1 sec +const HEALTH_CHECK_TIMEOUT = 250; const HEALTH_CHECK_MIN_DELAY = 5 * 1000; // 5 sec let worker: Worker;