Handle telephony event registration failure 93/319193/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 5 Feb 2025 08:22:17 +0000 (17:22 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Wed, 5 Feb 2025 08:22:17 +0000 (17:22 +0900)
Change-Id: I1c0102cce9292cbca3f889a7aa0befcd89528f81
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
plugin/telephony/telephony.c

index 0e89abbb2b014555cab2510c95d03efcb1ea1f51..278883d52044010789a67589aafb1457a65db843 100755 (executable)
@@ -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);