Skip to content

Commit

Permalink
fix: initialization of image store
Browse files Browse the repository at this point in the history
  • Loading branch information
motinados committed Sep 12, 2024
1 parent dcce46e commit 8f82acf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/imageStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ export class ImageStore {
return this._hashFn;
}

if (this._initializationPromise) {
await this._initializationPromise;
return this._hashFn!;
if (!this._initializationPromise) {
this._initializationPromise = this.initHashFn();
}

this._initializationPromise = this.initHashFn();
await this._initializationPromise;
return this._hashFn!;
}
Expand Down

0 comments on commit 8f82acf

Please sign in to comment.