Updated code to check if there is JVM already running
This commit is contained in:
@@ -29,7 +29,7 @@ class AniyomiBridge {
|
||||
Directory supportDirectory = await getApplicationSupportDirectory();
|
||||
_supportDirectoryPath = supportDirectory.path;
|
||||
await _loadJarIfNeeded(supportDirectory);
|
||||
Jni.spawn(
|
||||
Jni.spawnIfNotExists(
|
||||
dylibDir: _getDylibDir(supportDirectory),
|
||||
classPath: _getClassPath(supportDirectory),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user