Commit e3fd37b5 authored by smorlat's avatar smorlat
Browse files

robustify



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@373 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent a88326d9
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment