Set loaded to false when JNI loading fails (#1614)

#1613
This commit is contained in:
Joseph Farkas
2024-12-01 11:19:31 -05:00
committed by GitHub
parent 1dbd2e5990
commit d9dfe15bfe

View File

@@ -69,7 +69,8 @@ public abstract class PhotonJNICommon {
logger.error("Couldn't load shared object " + libraryName, e);
e.printStackTrace();
// logger.error(System.getProperty("java.library.path"));
break;
instance.setLoaded(false);
return;
}
}
instance.setLoaded(true);