Commit b5ed7b67 authored by Erwan Croze's avatar Erwan Croze 👋🏻 Committed by jehan

Remove linphone_core_set_state call on linphone core uninit

# Conflicts:
#	coreapi/linphonecore.c
parent 57b2d9e6
......@@ -6288,9 +6288,8 @@ void _linphone_core_uninit(LinphoneCore *lc)
lc->chat_rooms = bctbx_list_free_with_data(lc->chat_rooms, (bctbx_list_free_func)linphone_chat_room_unref);
linphone_core_set_state(lc,LinphoneGlobalShutdown,"Shutting down");
getPlatformHelpers(lc)->onLinphoneCoreStop();
//no longer call LinphoneGlobalShutdown because it cause LinphoneCore revival in case of managed languages like Java
getPlatformHelpers(lc)->onLinphoneCoreStop();
#ifdef VIDEO_ENABLED
if (lc->previewstream!=NULL){
......@@ -6361,7 +6360,7 @@ void _linphone_core_uninit(LinphoneCore *lc)
linphone_core_friends_storage_close(lc);
linphone_core_zrtp_cache_close(lc);
linphone_core_set_state(lc,LinphoneGlobalOff,"Off");
//linphone_core_set_state(NULL,LinphoneGlobalOff,"Off");
linphone_core_deactivate_log_serialization_if_needed();
bctbx_list_free_with_data(lc->vtable_refs,(void (*)(void *))v_table_reference_destroy);
ms_bandwidth_controller_destroy(lc->bw_controller);
......
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