[evolution-kolab] ECalBackendKolab: lock views mutex as early as possible
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] ECalBackendKolab: lock views mutex as early as possible
- Date: Tue, 4 Sep 2012 13:56:11 +0000 (UTC)
commit b4c211cda426c97623b758b8ec6ed98a3e42d25d
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Tue Sep 4 14:53:35 2012 +0200
ECalBackendKolab: lock views mutex as early as possible
src/calendar/e-cal-backend-kolab.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-kolab.c b/src/calendar/e-cal-backend-kolab.c
index 7198a44..04212f0 100644
--- a/src/calendar/e-cal-backend-kolab.c
+++ b/src/calendar/e-cal-backend-kolab.c
@@ -1756,11 +1756,11 @@ cal_backend_kolab_start_view (ECalBackend *backend,
g_return_if_fail (E_IS_CAL_BACKEND_KOLAB (backend));
g_return_if_fail (E_IS_DATA_CAL_VIEW (view));
+ g_mutex_lock (&active_cal_views_lock);
+
self = E_CAL_BACKEND_KOLAB (backend);
priv = E_CAL_BACKEND_KOLAB_PRIVATE (self);
- g_mutex_lock (&active_cal_views_lock);
-
g_object_ref (view); /* unref()d in stop_view() */
query = e_data_cal_view_get_text (view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]