mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-18 08:16:58 -04:00
fix: Suppress IOException when caching downloaded library. Closes #834.
This commit is contained in:
parent
c453bbc7cd
commit
2d4223f7ed
@ -168,8 +168,13 @@ public class LibraryDownloadTask extends Task<Void> {
|
||||
|
||||
@Override
|
||||
public void postExecute() throws Exception {
|
||||
if (!cached)
|
||||
cacheRepository.cacheLibrary(library, jar.toPath(), xz);
|
||||
if (!cached) {
|
||||
try {
|
||||
cacheRepository.cacheLibrary(library, jar.toPath(), xz);
|
||||
} catch (IOException e) {
|
||||
LOG.log(Level.WARNING, "Failed to cache downloaded library " + library, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean checksumValid(File libPath, List<String> checksums) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user