stream is closed

This commit is contained in:
Szum123321 2022-09-04 10:49:08 +02:00
parent 8b7dbdc8e8
commit dc24d51674

View File

@ -65,7 +65,7 @@ public class Cleanup {
var it = RestoreableFile.applyOnFiles(root, null,
e -> log.error("An exception occurred while trying to delete old files!", e),
s -> s.sorted().iterator());
s -> s.sorted().toList().iterator());
if(Objects.isNull(it)) return deletedFiles;