gkdbus: Fix wrong return value of _g_kdbus_quit_loop() 41/87441/1 accepted/tizen/common/20160908.134701 accepted/tizen/ivi/20160909.062511 accepted/tizen/mobile/20160909.062420 accepted/tizen/tv/20160909.062448 accepted/tizen/wearable/20160909.062459 submit/tizen/20160908.061113
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Thu, 8 Sep 2016 04:30:39 +0000 (13:30 +0900)
committerJonghwa Lee <jonghwa3.lee@samsung.com>
Thu, 8 Sep 2016 04:30:39 +0000 (13:30 +0900)
_g_kdbus_quit_loop() which is used as a callback function in
g_main_context_invoke() always return 'TRUE'. This is not correct.
Returnning 'TRUE' means its functionality isn't completed. And it
results infinite loop time to time.

This patch fixes the function's return value correctly.

Change-Id: I08ea4c3a7c294774163c63983b48b458aa1d5c43
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
gio/gkdbus.c

index 00ee755..c154287 100755 (executable)
@@ -584,7 +584,7 @@ static gboolean
 _g_kdbus_quit_loop (gpointer loop)
 {
   g_main_loop_quit ((GMainLoop*)loop);
-  return TRUE;
+  return FALSE;
 }
 
 /*