Added timeout in case the JNI Isolate crashes and adds a dispose method to be kill the JNI Isolate
This commit is contained in:
@@ -190,6 +190,10 @@ class JniIsolate {
|
||||
}
|
||||
}
|
||||
|
||||
dispose() {
|
||||
_jvmIsolate.kill(priority: Isolate.immediate);
|
||||
}
|
||||
|
||||
List<JSAnime> _getAnimeSearchResults(JAniyomiBridge jAniyomiBridge, String query, int page, String source) {
|
||||
JList<JObject?>? searchResults = jAniyomiBridge.getAnimeSearchResults(
|
||||
JString.fromString(query),
|
||||
|
||||
Reference in New Issue
Block a user