mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 03:21:29 +00:00
[skip ci]
This commit is contained in:
parent
acdd7a3851
commit
118422e26c
@ -114,11 +114,13 @@ private final class TimeBasedCleanupImpl {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
for item in checkFiles.sorted(by: <) {
|
clear: for item in checkFiles.sorted(by: <) {
|
||||||
if totalLimitSize > bytesLimit {
|
if totalLimitSize > bytesLimit {
|
||||||
unlink(item.file)
|
unlink(item.file)
|
||||||
removedGeneralLimitCount += 1
|
removedGeneralLimitCount += 1
|
||||||
totalLimitSize -= item.size
|
totalLimitSize -= item.size
|
||||||
|
} else {
|
||||||
|
break clear
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user