cleaned up baresip stop
This commit is contained in:
@@ -323,21 +323,15 @@ Java_com_tutpro_baresip_BaresipService_baresipStart(JNIEnv *env, jobject instanc
|
|||||||
out:
|
out:
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
LOGE("error: (%d)\n", err);
|
LOGE("Closing upon re_main error: (%d)\n", err);
|
||||||
ua_stop_all(true);
|
ua_stop_all(true);
|
||||||
}
|
|
||||||
|
|
||||||
LOGD("Main loop exit");
|
|
||||||
|
|
||||||
play = mem_deref(play);
|
play = mem_deref(play);
|
||||||
ua_close();
|
//ua_close();
|
||||||
conf_close();
|
conf_close();
|
||||||
baresip_close();
|
baresip_close();
|
||||||
|
//mod_close();
|
||||||
LOGD("Unloading modules");
|
//libre_close();
|
||||||
mod_close();
|
}
|
||||||
|
|
||||||
libre_close();
|
|
||||||
|
|
||||||
// tmr_debug();
|
// tmr_debug();
|
||||||
// mem_debug();
|
// mem_debug();
|
||||||
@@ -347,17 +341,16 @@ Java_com_tutpro_baresip_BaresipService_baresipStart(JNIEnv *env, jobject instanc
|
|||||||
|
|
||||||
JNIEXPORT void JNICALL
|
JNIEXPORT void JNICALL
|
||||||
Java_com_tutpro_baresip_BaresipService_baresipStop(JNIEnv *env, jobject thiz) {
|
Java_com_tutpro_baresip_BaresipService_baresipStop(JNIEnv *env, jobject thiz) {
|
||||||
LOGD("closing upon stop");
|
LOGD("Closing upon stop");
|
||||||
ua_stop_all(false);
|
ua_stop_all(false);
|
||||||
ua_close();
|
play = mem_deref(play);
|
||||||
|
// ua_close();
|
||||||
conf_close();
|
conf_close();
|
||||||
baresip_close();
|
baresip_close();
|
||||||
// mod_close();
|
// mod_close();
|
||||||
// libre_close();
|
// libre_close();
|
||||||
|
|
||||||
// tmr_debug();
|
// tmr_debug();
|
||||||
// mem_debug();
|
// mem_debug();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user