[evolution-kolab] EBookBackendKolab lock KolabMailAccess instance mutex as early as possible



commit 5981dcbca7940ae7e4e7f90ddb3652dfe0c4edcf
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Tue Sep 4 15:33:00 2012 +0200

    EBookBackendKolab lock KolabMailAccess instance mutex as early as possible

 src/addressbook/e-book-backend-kolab.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-kolab.c b/src/addressbook/e-book-backend-kolab.c
index a389220..57fc338 100644
--- a/src/addressbook/e-book-backend-kolab.c
+++ b/src/addressbook/e-book-backend-kolab.c
@@ -266,11 +266,11 @@ book_backend_kolab_open (EBookBackendSync *backend,
 	(void)only_if_exists; /* FIXME */
 	e_return_data_book_error_if_fail (error == NULL || *error == NULL, E_DATA_BOOK_STATUS_INVALID_ARG);
 
+	g_mutex_lock (&koma_objects_lock);
+
 	self = E_BOOK_BACKEND_KOLAB (backend);
 	priv = E_BOOK_BACKEND_KOLAB_PRIVATE (self);
 
-	g_mutex_lock (&koma_objects_lock);
-
 	esource = e_backend_get_source (E_BACKEND (backend));
 	if (! E_IS_SOURCE (esource)) {
 		tmp_err = e_data_book_create_error (E_DATA_BOOK_STATUS_OTHER_ERROR,



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