Skip to content

Commit

Permalink
fix: protect against if retries is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kunstmusik authored and dtfiedler committed Feb 24, 2025
1 parent 229df6b commit 6aa1b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/contracts/ao-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class AOProcess implements AOContract {
processId: this.processId,
});

if (attempts === retries) {
if (attempts >= retries) {
throw error;
}

Expand Down Expand Up @@ -216,7 +216,7 @@ export class AOProcess implements AOContract {
processId: this.processId,
});

if (attempts === retries) {
if (attempts >= retries) {
throw error;
}

Expand Down

0 comments on commit 6aa1b58

Please sign in to comment.