From: Jaehyun Kim Date: Wed, 5 Feb 2025 08:22:17 +0000 (+0900) Subject: Handle telephony event registration failure X-Git-Tag: accepted/tizen/unified/20250206.153717~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=223b988604c00c65d15d0240372613991a533fbe;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Handle telephony event registration failure Change-Id: I1c0102cce9292cbca3f889a7aa0befcd89528f81 Signed-off-by: Jaehyun Kim --- diff --git a/plugin/telephony/telephony.c b/plugin/telephony/telephony.c index 0e89abb..278883d 100755 --- a/plugin/telephony/telephony.c +++ b/plugin/telephony/telephony.c @@ -489,8 +489,12 @@ gboolean telephony_tapi_check_sim_state(void) case TAPI_SIM_STATUS_SIM_NSCK_REQUIRED: case TAPI_SIM_STATUS_SIM_SPCK_REQUIRED: case TAPI_SIM_STATUS_SIM_CCK_REQUIRED: - tel_register_noti_event(tapi_handle, TAPI_NOTI_SIM_STATUS, + ret = tel_register_noti_event(tapi_handle, TAPI_NOTI_SIM_STATUS, telephony_noti_sim_status_cb, NULL); + if (ret != TAPI_API_SUCCESS) { + ERR("event register failed(%d)", ret); + netconfig_tel_deinit(); + } return FALSE; default: ERR("not defined status(%d)", status);