From 223b988604c00c65d15d0240372613991a533fbe Mon Sep 17 00:00:00 2001 From: Jaehyun Kim Date: Wed, 5 Feb 2025 17:22:17 +0900 Subject: [PATCH] Handle telephony event registration failure Change-Id: I1c0102cce9292cbca3f889a7aa0befcd89528f81 Signed-off-by: Jaehyun Kim --- plugin/telephony/telephony.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.34.1