Use asynchronous post API for invitation requests
This commit is contained in:
1 parent
66783bd0b2
commit
a2bbd208ea
1 file changed
+1
-3
@@ -1927,9 +1927,7 @@ JNIEXPORT jboolean JNICALL Java_com_utun_chat_data_NativeLib_nativeDmInvite(
|
||||
snprintf(req->source_ch_id, sizeof(req->source_ch_id), "%s", src);
|
||||
snprintf(req->peer_name, sizeof(req->peer_name), "%s", nm);
|
||||
(*env)->ReleaseStringUTFChars(env, source, src); (*env)->ReleaseStringUTFChars(env, name, nm);
|
||||
if (uasync_post(ua, dm_invite_trampoline, req) != 0) {
|
||||
bridge_log(BLEV_ERROR, "invite PM: post failed"); u_free(req); return JNI_FALSE;
|
||||
}
|
||||
uasync_post(ua, dm_invite_trampoline, req);
|
||||
return JNI_TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user