diff --git a/engine/src/desktop/com/jme3/system/Natives.java b/engine/src/desktop/com/jme3/system/Natives.java index bd28584ac..697eeea62 100644 --- a/engine/src/desktop/com/jme3/system/Natives.java +++ b/engine/src/desktop/com/jme3/system/Natives.java @@ -85,16 +85,14 @@ public class Natives { out.close(); } catch (FileNotFoundException ex) { if (ex.getMessage().contains("used by another process")) { - if (load) { - System.load(targetFile.getAbsolutePath()); - } return; } throw ex; - } - if (load) { - System.load(targetFile.getAbsolutePath()); + } finally { + if (load) { + System.load(targetFile.getAbsolutePath()); + } } logger.log(Level.FINE, "Copied {0} to {1}", new Object[]{fullname, targetFile}); }