mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-18 16:26:05 -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
|
@Override
|
||||||
public void postExecute() throws Exception {
|
public void postExecute() throws Exception {
|
||||||
if (!cached)
|
if (!cached) {
|
||||||
|
try {
|
||||||
cacheRepository.cacheLibrary(library, jar.toPath(), xz);
|
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) {
|
public static boolean checksumValid(File libPath, List<String> checksums) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user