Set the timeout about sending dbus message 96/139396/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 19 Jul 2017 00:31:59 +0000 (09:31 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 19 Jul 2017 00:31:59 +0000 (09:31 +0900)
The timeout interval is 5 seconds.

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

index 068d3d0..8cfff69 100644 (file)
@@ -85,7 +85,7 @@ API int aul_window_stack_get(aul_window_stack_h *handle)
        }
 
        reply = g_dbus_connection_send_message_with_reply_sync(system_conn, msg,
-                       G_DBUS_SEND_MESSAGE_FLAGS_NONE, -1, NULL, NULL, &err);
+                       G_DBUS_SEND_MESSAGE_FLAGS_NONE, 5000, NULL, NULL, &err);
 
        if (!reply) {
                if (err != NULL) {
@@ -304,7 +304,7 @@ API int aul_window_get_focused_pid(pid_t *pid)
        }
 
        reply = g_dbus_connection_send_message_with_reply_sync(system_conn, msg,
-                       G_DBUS_SEND_MESSAGE_FLAGS_NONE, -1, NULL, NULL, &err);
+                       G_DBUS_SEND_MESSAGE_FLAGS_NONE, 5000, NULL, NULL, &err);
 
        if (!reply) {
                if (err != NULL) {