Skip to content

Commit

Permalink
problem: doesn't fire an error on connection transient failure
Browse files Browse the repository at this point in the history
  • Loading branch information
BOOMER74 authored May 11, 2023
1 parent 4da5396 commit 2342a79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/Retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class Retry<T, R> {
const isReady = (state: ConnectivityState, retry: boolean): boolean => {
// console.warn("state", state);
if (state === ConnectivityState.TRANSIENT_FAILURE) {
this.sc.onFail();
if (retry) {
setTimeout(this.callWhenReady.bind(this), 5000, this.executor, this.sc);
}
Expand Down

0 comments on commit 2342a79

Please sign in to comment.