Skip to content

Commit

Permalink
fix(core): rpc retry timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jun 6, 2024
1 parent 48a72ef commit 2a772a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/rpc/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ export function onRpcConnected(callback: () => void) {
}

timer = setInterval(() => {
if (retryCount >= 20) {
if (retryCount >= 30) {
clearTimeout(timer)
}
retryCount++
heartbeat()
}, retryCount * 80) as unknown as number
}, retryCount * 200 + 200) as unknown as number
heartbeat()
}

Expand Down

0 comments on commit 2a772a8

Please sign in to comment.