Compare commits

..

1 commit

Author SHA1 Message Date
f507dae186
feat: cancellable download 2025-03-10 20:53:47 +08:00

View file

@ -169,7 +169,7 @@ Java_net_typeblog_lpac_1jni_LpacJni_downloadProfile(JNIEnv *env, jobject thiz, j
euicc_http_cleanup(ctx);
out:
if (ret == -ES10B_ERROR_REASON_UNDEFINED) {
if (IS_CANCELLED == 0 && ret == -ES10B_ERROR_REASON_UNDEFINED) {
SET_CANCELLED(JNI_TRUE);
}
// We expect Java side to call cancelSessions after any error -- thus, `euicc_http_cleanup` is done there