Change return value of app_manager_set_app_context_event_cb function 43/280843/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 6 Sep 2022 00:06:09 +0000 (00:06 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 6 Sep 2022 00:06:23 +0000 (00:06 +0000)
If calling the aul_app_event_create_async() is failed, the
app_manager_set_app_context_event_cb() returns APP_MANAGER_ERROR_IO_ERROR.

Change-Id: I950f124c15e98efd11fb65bbe5d89f3abc6a8910
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/app_context.c

index 9776b10..9c756b7 100644 (file)
@@ -444,7 +444,7 @@ static int __event_cb_context_init(void)
        if (ret != AUL_R_OK) {
                _E("aul_app_context_create() is failed. error(%d)", ret);
                __event_cb_context_fini();
-               return APP_MANAGER_ERROR_OUT_OF_MEMORY;
+               return APP_MANAGER_ERROR_IO_ERROR;
        }
 
        return APP_MANAGER_ERROR_NONE;