Catch UncheckedIOException in findAllHostedPaths() which was seen when a file was deleted by another thread.

This commit is contained in:
CalDescent 2022-02-19 17:18:51 +00:00
parent 8de606588c
commit 6d0db7cc5e

View File

@ -16,6 +16,7 @@ import org.qortal.utils.FilesystemUtils;
import org.qortal.utils.NTP;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
@ -322,7 +323,7 @@ public class ArbitraryDataStorageManager extends Thread {
&& path.getFileName().toString().length() > 32)
.collect(Collectors.toList());
}
catch (IOException e) {
catch (IOException | UncheckedIOException e) {
LOGGER.info("Unable to walk through hosted data: {}", e.getMessage());
}