SECURE_LOGD("[__SUSPEND__] pid :%d", pid);
app_status = _app_status_find(pid);
+ if (!app_status)
+ return G_SOURCE_REMOVE;
+
_app_status_check_service_only(app_status,
__prepare_to_suspend);
- return FALSE;
+ return G_SOURCE_REMOVE;;
}
static int __check_allowed_appid(const char *callee_appid,
}
if (comp_type && !strcmp(comp_type, APP_TYPE_SERVICE)) {
- if (!handle->bg_allowed)
- g_idle_add(__check_service_only, GINT_TO_POINTER(ret));
+ if (!handle->bg_allowed) {
+ g_timeout_add(5000, __check_service_only,
+ GINT_TO_POINTER(ret));
+ }
}
return ret;