mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +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 {
|
||||
unlink(item.file)
|
||||
removedGeneralLimitCount += 1
|
||||
totalLimitSize -= item.size
|
||||
} else {
|
||||
break clear
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user