Merge pull request #244 from Philreact/fix/fix-indicator

fix indicator
This commit is contained in:
AlphaX-Projects 2024-01-03 15:03:28 +01:00 committed by GitHub
commit 1697adeafe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -167,6 +167,8 @@ class SyncIndicator extends connect(store)(LitElement) {
state.app.nodeStatus &&
state.app.nodeStatus.syncPercent !== this.syncPercentage
) {
this.hasCoreRunning = true
this.numberOfTries = 0
this.syncPercentage = state.app.nodeStatus.syncPercent;
if (state.app.nodeStatus.syncPercent !== 100) {

View File

@ -1,6 +1,6 @@
import {parentEpml} from '../connect.js'
const MIN_RECONNECT_INTERVAL = 1000; // 1 second
const MAX_RECONNECT_INTERVAL = 300000; // 5 minutes
const MAX_RECONNECT_INTERVAL = 60000; // 1 minute
let socketObject
let activeBlockSocketTimeout