diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/account-data-cache.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/src/main/account-data-cache.ts b/gui/src/main/account-data-cache.ts index 58c6d41dbd..97a94eb7c3 100644 --- a/gui/src/main/account-data-cache.ts +++ b/gui/src/main/account-data-cache.ts @@ -102,7 +102,8 @@ export default class AccountDataCache { private scheduleRetry(accountToken: AccountToken) { this.fetchAttempt += 1; - const delay = Math.min(2048, 1 << (this.fetchAttempt + 2)) * 1000; + // Max delay: 2^11 = 2048 + const delay = Math.pow(2, Math.min(this.fetchAttempt + 2, 11)) * 1000; log.warn(`Failed to fetch account data. Retrying in ${delay} ms`); |
