mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[skip ci]
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user