Reduce dbus block time when trying to prepare 53/315553/1
authorVBS <sooyeon.kim@samsung.com>
Tue, 3 Dec 2024 04:31:11 +0000 (13:31 +0900)
committerSooyeon Kim <sooyeon.kim@samsung.com>
Tue, 3 Dec 2024 05:04:05 +0000 (05:04 +0000)
Change-Id: I5d77115460f83839eaa56d09dbd157c84c053b1a
Signed-off-by: VBS <sooyeon.kim@samsung.com>
(cherry picked from commit 86649ee64fb17cb70acb97a8619a725015e2a9f2)

client/stt_dbus.c

index a01bb4cfaa0fc863d47236a0f7b258a0df7dbfa1..871742f087fc6e5e2c09f0674b38ddb8cecb0988 100644 (file)
@@ -23,6 +23,7 @@
 
 static int g_waiting_time = 3000;
 static int g_waiting_short_time = 500;
+static int g_waiting_time_for_preparing = 200;
 
 static char* g_server_service_name = NULL;
 static char* g_server_service_object = NULL;
@@ -860,7 +861,7 @@ int stt_dbus_request_hello(unsigned int uid)
                SLOG(LOG_DEBUG, TAG_STTC, ">>>> Request stt hello : uid(%u)", uid);
        }
 
-       DBusMessage* result_msg = __stt_dbus_send_message_with_reply_and_block(msg, g_waiting_short_time);
+       DBusMessage* result_msg = __stt_dbus_send_message_with_reply_and_block(msg, g_waiting_time_for_preparing);
        if (NULL != result_msg) {
                dbus_message_unref(result_msg);
                result_msg = NULL;