aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2009-01-30 17:28:55 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2009-01-30 17:28:55 +0800
commitbf4820e7210c70abc7fd4249dc838115bdec6727 (patch)
tree20648ce34823ac7cbd527dbe3b32945b515df1cb
parent01d647401b5cb79177da45f6a7a5e5d73264ac10 (diff)
downloadgsoc2013-evolution-bf4820e7210c70abc7fd4249dc838115bdec6727.tar
gsoc2013-evolution-bf4820e7210c70abc7fd4249dc838115bdec6727.tar.gz
gsoc2013-evolution-bf4820e7210c70abc7fd4249dc838115bdec6727.tar.bz2
gsoc2013-evolution-bf4820e7210c70abc7fd4249dc838115bdec6727.tar.lz
gsoc2013-evolution-bf4820e7210c70abc7fd4249dc838115bdec6727.tar.xz
gsoc2013-evolution-bf4820e7210c70abc7fd4249dc838115bdec6727.tar.zst
gsoc2013-evolution-bf4820e7210c70abc7fd4249dc838115bdec6727.zip
Fixes #347287.
svn path=/trunk/; revision=37187
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-cal-model.c4
-rw-r--r--calendar/gui/gnome-cal.c4
3 files changed, 11 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index d3337bf98f..4228fed713 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-30 Chenthill Palanisamy <pchenthill@novell.com>
+
+ Fixes #347287
+ * calendar/gui/e-cal-model.c:
+ * calendar/gui/gnome-cal.c: Increased the number of tries
+ to 10 and wait to 500 micro seconds.
+
2009-01-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #318003
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 63e840ccb1..3c64e04296 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -1677,10 +1677,10 @@ update_e_cal_view_for_client (ECalModel *model, ECalModelClient *client_data)
try_again:
if (!e_cal_get_query (client_data->client, priv->full_sexp, &client_data->query, &error)) {
- if (error->code == E_CALENDAR_STATUS_BUSY && tries != 3) {
+ if (error->code == E_CALENDAR_STATUS_BUSY && tries != 10) {
tries++;
/*TODO chose an optimal value */
- g_usleep (50);
+ g_usleep (500);
g_clear_error (&error);
goto try_again;
}
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 3b08f16390..560c55dd2a 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -903,10 +903,10 @@ try_again:
old_query = NULL;
if (!e_cal_get_query ((ECal *) l->data, real_sexp, &old_query, &error)) {
/* If calendar is busy try again for 3 times. */
- if (error->code == E_CALENDAR_STATUS_BUSY && tries != 3) {
+ if (error->code == E_CALENDAR_STATUS_BUSY && tries != 10) {
tries++;
/*TODO chose an optimal value */
- g_usleep (50);
+ g_usleep (500);
g_clear_error (&error);
goto try_again;