Skip to content

Commit

Permalink
return immediately if already done
Browse files Browse the repository at this point in the history
  • Loading branch information
lenkan committed Mar 23, 2024
1 parent e7b8e05 commit 2f21f4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/keri/app/coring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ export class Operations {
await this.wait(op.metadata.depends, options);
}

if (op.done === true) {
return op;
}

let retries = 0;

// eslint-disable-next-line no-constant-condition
Expand Down

0 comments on commit 2f21f4b

Please sign in to comment.