From 89b347d3a9bc0bfea35263aeabec1521f0e90a40 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 19 Apr 2013 10:42:35 +0200 Subject: Workaround broken Free/Busy fetching (Bug #692361) --- plugins/publish-calendar/publish-format-fb.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugins') diff --git a/plugins/publish-calendar/publish-format-fb.c b/plugins/publish-calendar/publish-format-fb.c index 9ead6efe0f..c062994720 100644 --- a/plugins/publish-calendar/publish-format-fb.c +++ b/plugins/publish-calendar/publish-format-fb.c @@ -117,6 +117,16 @@ write_calendar (const gchar *uid, if (e_cal_client_get_free_busy_sync (E_CAL_CLIENT (client), start, end, users, NULL, error)) { gchar *ical_string; GSList *iter; + gboolean done = FALSE; + + /* This is to workaround broken dispatch of "free-busy-data" signal, + introduced in 3.8.0. This code can be removed once the below bug is + properly fixed: https://bugzilla.gnome.org/show_bug.cgi?id=692361 + */ + while (!done) { + g_usleep (G_USEC_PER_SEC / 10); + done = !g_main_context_iteration (NULL, FALSE); + } for (iter = objects; iter; iter = iter->next) { ECalComponent *comp = iter->data; -- cgit v1.2.3