From 7b9d30601742c8f27e43aed0cbcaacc9c8f3c674 Mon Sep 17 00:00:00 2001 From: "sunyeop.hwnag" Date: Sat, 1 Sep 2012 16:09:41 +0900 Subject: check first_boot when tapi init fail Change-Id: Ideae00de61f9c62b8466865fdc84447eb34d5520 --- src/pwlock.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pwlock.c b/src/pwlock.c index f62e6a3..0526e5f 100755 --- a/src/pwlock.c +++ b/src/pwlock.c @@ -435,7 +435,10 @@ Eina_Bool vconf_tapi_ready_expire_cb(void *pData) } else { if (vconf_val == VCONFKEY_TELEPHONY_TAPI_STATE_NONE) { _DBG("TAPI is not ready, pwlock exit"); - _trans(ad, _ST_GREETING); + if (ad->is_exec_after_bootup == 0 && ad->is_first_boot && ad->cancel_setup == 0) + _trans(ad, _ST_GREETING); + else + _trans(ad, _ST_EXIT); do_state(ad); } else { _DBG("TAPI is ready"); @@ -513,7 +516,11 @@ static int do_ST_TAPI_INIT(struct appdata *ad) ad->t = pwlock_tapi_init(pwlock_tapi_cb, ad); if (ad->t == NULL) { _ERR("TAPI init error"); - _trans(ad, _ST_GREETING); + if (ad->is_exec_after_bootup == 0 && ad->is_first_boot && ad->cancel_setup == 0) + _trans(ad, _ST_GREETING); + else + _trans(ad, _ST_EXIT); + return ECORE_CALLBACK_RENEW; } -- cgit v1.2.3