Skip to content

Commit 7860163

Browse files
committed
fix(#36): make sure hot download dir cleanup respects custom dir argument
1 parent 29931f6 commit 7860163

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/auto-updater.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class AutoUpdater extends EventEmitter {
2525
if (dbList) this.dbList = dbList
2626
if (customStorageDir) this.customStorageDir = customStorageDir
2727

28-
cleanupHotDownloadDir();
28+
cleanupHotDownloadDir(this.customStorageDir);
2929

3030
this.#checker = setInterval(
3131
this.checkForUpdates.bind(this),
@@ -69,7 +69,7 @@ export class AutoUpdater extends EventEmitter {
6969
console.error(err)
7070
console.warn('Warning: allowing the GeoLite databases to self-update is mandatory to comply with license requirements.')
7171
} finally {
72-
cleanupHotDownloadDir()
72+
cleanupHotDownloadDir(this.customStorageDir)
7373
this.downloading = false
7474
}
7575
}

0 commit comments

Comments
 (0)