Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Flag is useless (always true).
[simgrid.git] / src / bindings / java / org / simgrid / NativeLib.java
index 1902618..0f8c1e6 100644 (file)
@@ -115,16 +115,13 @@ public final class NativeLib {
                                int bytesRead;
                                while ((bytesRead = in.read(buffer)) != -1)     // Read until EOF
                                        out.write(buffer, 0, bytesRead);
-                               
-                               out.close(); // Windows cannot open it twice, so close it first. Shame.
-                               
-                               /* load that shit */
-                               System.load(fileOut.getAbsolutePath());
-                               
-                               /* It loaded! we're good */
-                               return true;
-                               
                        }
+
+                       /* load that library */
+                       System.load(fileOut.getAbsolutePath());
+
+                       /* It loaded! we're good */
+                       return true;
                }
                
                /* No suitable name found */