Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Seems to work without it

Manav Rathi24691b865245
diff --git a/desktop/src/main/services/zip.ts b/desktop/src/main/services/zip.ts
index c71e6e0b96..5a7f4242f0 100644
--- a/desktop/src/main/services/zip.ts
+++ b/desktop/src/main/services/zip.ts
@@ -6,11 +6,7 @@ const _cache = new LRUCache<string, StreamZip.StreamZipAsync>({
max: 50,
disposeAfter: (zip, zipPath) => {
if (_refCount.has(zipPath)) {
- // Add it back again. The `noDisposeOnSet` flag prevents dispose
- // from being called again. From my understanding, it shouldn't
- // matter in our case, but I've kept it here to match the
- // recommended example:
- // https://github.com/isaacs/node-lru-cache/issues/151#issuecomment-1033206697
+ // Add it back again.
_cache.set(zipPath, zip);
} else {
void zip.close();