If the app attempts to register the callback
using aul_app_lifecycle_register_state_changed_cb() more than once,
the log is displayed.
Change-Id: Idbe374a78850ce5d259e3bc96be41427ee1c5269
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
cb_ = cb;
user_data_ = user_data;
- if (conn_ != nullptr)
+ if (conn_ != nullptr) {
+ _W("Callback was already registered.");
return AUL_R_OK;
+ }
int ret = aul_app_com_create_async("app_lifecycle_state_change", nullptr,
AppComMessageCb, this, &conn_);