+2004-08-25 Chenthill Palanisamy <pchenthill@novell.com>
+
+ * backends/groupwise/e-cal-backend-groupwise.c
+ (populate_cache): Used a static mutex to avoid the
+ the simulataneous calls from calendar and tasks to
+ ReadCursorRequest which crashes the server.
+
2004-08-24 Sivaiah Nallagatla <snallagatla@novell.com>
* backends/groupwise/e-cal-backend-groupwise.c
return cbgw->priv->default_zone;
}
+static GMutex *mutex = NULL;
+
/* Initialy populate the cache from the server */
static EGwConnectionStatus
populate_cache (ECalBackendGroupwise *cbgw)
int cursor = 0;
priv = cbgw->priv;
+
+ if (!mutex) {
+ mutex = g_mutex_new ();
+ }
+
+ g_mutex_lock (mutex);
/* get the list of category ids and corresponding names from the server */
status = e_gw_connection_get_categories (priv->cnc, priv->categories_by_id, priv->categories_by_name);
}
e_gw_connection_destroy_cursor (priv->cnc, priv->container_id, cursor);
+ g_mutex_unlock (mutex);
+
return E_GW_CONNECTION_STATUS_OK;
}
}
+
+
static ECalBackendSyncStatus
connect_to_server (ECalBackendGroupwise *cbgw)
{