Skip to content

best way to save what you love

api/memory-store: unref timeout so it doesn't hold up process

jje2b4141fc76d
diff --git a/api/src/store/memory-store.js b/api/src/store/memory-store.js
index 2b7f4a86..100a0e09 100644
--- a/api/src/store/memory-store.js
+++ b/api/src/store/memory-store.js
@@ -60,6 +60,7 @@ export default class MemoryStore extends Store {
() => this.#sweepNow(),
Math.max(MIN_THRESHOLD_MS, time - current_time)
);
+ sweep.id.unref();
}
}