mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
api/memory-store: unref timeout so it doesn't hold up process
This commit is contained in:
@ -60,6 +60,7 @@ export default class MemoryStore extends Store {
|
|||||||
() => this.#sweepNow(),
|
() => this.#sweepNow(),
|
||||||
Math.max(MIN_THRESHOLD_MS, time - current_time)
|
Math.max(MIN_THRESHOLD_MS, time - current_time)
|
||||||
);
|
);
|
||||||
|
sweep.id.unref();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user