refactor: tweak profile loader

This commit is contained in:
2024-06-25 16:14:53 +01:00
parent 1a405f7796
commit bdc94cec8b
5 changed files with 52 additions and 5 deletions

View File

@ -79,6 +79,9 @@ export abstract class BackgroundLoader<T extends { loaded: number; created: numb
resolve(existing);
this.UntrackKeys(key);
this.cache.off("change", handler);
} else {
// should never happen
reject(new Error("Not found"));
}
}
};