Fix wrong implementation about aul handler call 78/273678/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 12 Apr 2022 07:54:17 +0000 (16:54 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 12 Apr 2022 07:54:17 +0000 (16:54 +0900)
If the bundle data has "__K_SERVICE_THREAD", the request will be
delivered to the main thread.

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

index 40a78b2..e5167fe 100644 (file)
@@ -745,8 +745,8 @@ API int aul_launch_argv_handler(int argc, char **argv)
        if (!b)
                _E("Bundle is nullptr");
 
-       if (!__g_idle_add_full(__context.tizen_context, G_PRIORITY_HIGH,
-                               __app_start_cb, b)) {
+       if (!__g_idle_add_full(__get_glib_context(APP_START, b),
+                               G_PRIORITY_HIGH, __app_start_cb, b)) {
                _E("Failed to add idler");
                return AUL_R_ERROR;
        }
@@ -764,8 +764,8 @@ API int aul_launch_local(bundle *b)
        if (!b)
                _E("Bundle is nullptr");
 
-       if (!__g_idle_add_full(__context.tizen_context, G_PRIORITY_DEFAULT,
-                               __app_start_cb, b)) {
+       if (!__g_idle_add_full(__get_glib_context(APP_START, b),
+                               G_PRIORITY_DEFAULT, __app_start_cb, b)) {
                _E("Failed to add idler");
                return AUL_R_ERROR;
        }