[evolution-data-server] Revert "gdbus_proxy_call_sync: stop using g_usleep()"



commit a0226a9ecbac6f22d2f3ec6c037112c17ae21598
Author: Christophe Dumez <christophe dumez intel com>
Date:   Tue Oct 11 10:51:37 2011 +0300

    Revert "gdbus_proxy_call_sync: stop using g_usleep()"
    
    This reverts commit cf78ee827d3c5157e44a1e4c32d395942a816461.

 libedataserver/e-gdbus-templates.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libedataserver/e-gdbus-templates.c b/libedataserver/e-gdbus-templates.c
index b420d99..973fa8c 100644
--- a/libedataserver/e-gdbus-templates.c
+++ b/libedataserver/e-gdbus-templates.c
@@ -1438,7 +1438,8 @@ gdbus_proxy_call_sync (GDBusProxy *proxy,
 		 * from the main thread, then there is probably no other option.
 		*/
 		while (!e_flag_is_set (sync_data.flag)) {
-			g_main_context_iteration (NULL, TRUE);
+			g_usleep (1000);
+			g_main_context_iteration (NULL, FALSE);
 		}
 	} else {
 		/* is called in a dedicated thread */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]