Reduce JNI timeout duration from 40 to 20 seconds for improved responsiveness
This commit is contained in:
@@ -320,7 +320,7 @@ class AniyomiBridge {
|
|||||||
_pendingRequests[message.id] = completer;
|
_pendingRequests[message.id] = completer;
|
||||||
_jniSenderPort.send(message);
|
_jniSenderPort.send(message);
|
||||||
return completer.future.timeout(
|
return completer.future.timeout(
|
||||||
const Duration(seconds: 40),
|
const Duration(seconds: 20),
|
||||||
onTimeout: () => throw TimeoutException("JNI Isolate timed out")
|
onTimeout: () => throw TimeoutException("JNI Isolate timed out")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user