mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
robustify
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@373 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
a88326d908
commit
e3fd37b5a9
2 changed files with 9 additions and 1 deletions
|
|
@ -174,11 +174,18 @@ int p2pproxy_resourcemgt_revoke_sip_proxy(const char* proxy_uri) {
|
|||
(*p2pproxy_application_jvm)->DetachCurrentThread(p2pproxy_application_jvm);
|
||||
return lResult;
|
||||
}
|
||||
|
||||
int p2pproxy_application_get_state() {
|
||||
jmethodID stateMethod;
|
||||
GET_JNI_ENV
|
||||
stateMethod = (*lJniEnv)->GetStaticMethodID(lJniEnv, lMainClass, "getState", "()I");
|
||||
if (stateMethod==NULL) {
|
||||
lResult=P2PPROXY_ERROR_APPLICATION_NOT_STARTED;
|
||||
goto end;
|
||||
}
|
||||
lResult = (*lJniEnv)->CallStaticIntMethod(lJniEnv, lMainClass, stateMethod);
|
||||
goto end;
|
||||
end:
|
||||
(*p2pproxy_application_jvm)->DetachCurrentThread(p2pproxy_application_jvm);
|
||||
return lResult;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ static ms_thread_t fonis_thread;
|
|||
|
||||
|
||||
static void *fonis_thread_func(void *arg){
|
||||
if (p2pproxy_application_start(0,NULL)!=0){
|
||||
char *argv[]={"-edge-only","-sip", "5058",NULL};
|
||||
if (p2pproxy_application_start(3,argv)!=0){
|
||||
ms_error("Fail to start fonis thread !");
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue