Skip to content

Commit

Permalink
fix(#36): make sure hot download dir cleanup respects custom dir argu…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
GitSquared committed Aug 28, 2024
1 parent d6e3629 commit 59f4b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auto-updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class AutoUpdater extends EventEmitter {
if (dbList) this.dbList = dbList
if (customStorageDir) this.customStorageDir = customStorageDir

cleanupHotDownloadDir();
cleanupHotDownloadDir(this.customStorageDir);

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

0 comments on commit 59f4b3e

Please sign in to comment.