Merge "Add line coverage tags" into tizen
authorsooyeon.kim <sooyeon.kim@samsung.com>
Wed, 8 Aug 2018 04:45:01 +0000 (04:45 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 8 Aug 2018 04:45:01 +0000 (04:45 +0000)
client/tts_dbus.c
server/ttsd_dbus.c

index 25b9106..5686580 100644 (file)
@@ -23,7 +23,7 @@
 #include "tts_main.h"
 #include "tts_internal.h"
 
-#define HELLO_WAITING_TIME 500
+#define HELLO_WAITING_TIME -1
 #define WAITING_TIME 5000
 
 static DBusConnection* g_conn_sender = NULL;
index 1cf564b..ce47e61 100644 (file)
@@ -440,6 +440,11 @@ int ttsd_dbus_open_connection()
                return -1;
        }
 
+       /* Flush messages which are received before fd event handler registration */
+       while (DBUS_DISPATCH_DATA_REMAINS == dbus_connection_get_dispatch_status(g_conn_listener)) {
+               listener_event_callback(NULL, NULL);
+       }
+
        /* add a rule for getting signal */
        char rule[128];
        snprintf(rule, 128, "type='method_call',interface='%s'", g_service_interface);