Rename `"abortHandler" to "abortLogger"

This commit is contained in:
awsr
2026-01-28 13:32:37 -08:00
parent 93fc65b2ea
commit 9c1f317980
+2 -2
View File
@@ -260,7 +260,7 @@ class SimpleFunctionQueue {
this.#queue = [];
}
static abortHandler(identifier, result) {
static abortLogger(identifier, result) {
if (typeof result === 'string' || (result instanceof DOMException && result.name === 'AbortError')) {
log(identifier, result?.message || result);
} else {
@@ -1006,7 +1006,7 @@ async function thumbCacheCleanup(folder, imgCount, controller, force = false) {
log(`Thumbnail DB cleanup: folder=${folder} kept=${staticGalleryHashes.size} deleted=${delcount} time=${Math.floor(t1 - t0)}ms`);
})
.catch((reason) => {
SimpleFunctionQueue.abortHandler('Thumbnail DB cleanup:', reason);
SimpleFunctionQueue.abortLogger('Thumbnail DB cleanup:', reason);
})
.finally(async () => {
await new Promise((resolve) => { setTimeout(resolve, 1000); }); // Delay removal by 1 second to ensure at least minimum visibility