stream is closed

2.x
Szum123321 2022-09-04 10:49:08 +02:00
parent 8b7dbdc8e8
commit dc24d51674
1 changed files with 1 additions and 1 deletions

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;