Skip to content

Commit 596b33c

Browse files
committed
Re-applied changed to consolidate targets, but the sha ones are not done
1 parent 686ada3 commit 596b33c

File tree

1 file changed

+2
-2
lines changed
  • hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime

1 file changed

+2
-2
lines changed

hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/Library.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ private boolean extractAndLoad(ArrayList<Throwable> errors, String customPath, S
332332
if (STRATEGY_SHA1.equals(STRATEGY)) {
333333
target = extractSha1(errors, resource, prefix, targetLibName, path);
334334
} else {
335-
File target = extract(errors, resource, prefix, targetLibName, path);
335+
target = extractTemp(errors, resource, prefix, targetLibName, path);
336336
}
337337
if( target!=null ) {
338338
if( load(errors, target) ) {
@@ -459,7 +459,7 @@ private File extractTemp(ArrayList<Throwable> errors, URL source, String prefix,
459459
if (tempExtractDir == null) {
460460
tempExtractDir = Files.createTempDirectory(directory.toPath(), prefix);
461461
}
462-
462+
463463
FileOutputStream os = null;
464464
InputStream is = null;
465465
try {

0 commit comments

Comments
 (0)