Skip to content

Commit

Permalink
lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Dec 21, 2023
1 parent 2441cb4 commit e520840
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/src/SharedCache.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlin.math.absoluteValue


internal
const val infoX = "info.json"
const val lockFileEx = "lock.json"

data class GihHubDownloadTrack(
/**
Expand Down Expand Up @@ -97,7 +97,7 @@ object SharedCache {
newTimestamp: Long = System.currentTimeMillis(),
logger: Logger? = null,
) {
val infoFi = File("$lockFile.$infoX")
val infoFi = File("$lockFile.$lockFileEx")
if (infoFi.isDirectory) {
infoFi.deleteRecursively()
}
Expand All @@ -115,7 +115,7 @@ object SharedCache {
lockFile: File,
outOfDate: Long = R.outOfDataDuration,
): Boolean {
val infoFi = File("$lockFile.$infoX")
val infoFi = File("$lockFile.$lockFileEx")
if (!lockFile.exists()) {
if (infoFi.exists()) infoFi.delete()
return false
Expand Down

0 comments on commit e520840

Please sign in to comment.