Permalink
Browse files

Fixed a failure to set isInited as true in cbccore.Device

  • Loading branch information...
1 parent adfb3c9 commit 08a7b99f28ea3a42bcf47655df1568d56be52937 @bgw bgw committed May 16, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 cbc/CBCJVM/src/cbccore/Device.java
@@ -53,6 +53,10 @@ public static void init() {
}
public static void init(SimulatorFactory preferedSim) {
+ if (isInited) {
+ return;
+ }
+ isInited = true;
try {
if(System.getProperty("CBC") == null) throw new Exception();
System.load("/mnt/user/jvm/cbc/CBC.so");

0 comments on commit 08a7b99

Please sign in to comment.