[evolution-mapi] [Camel] Protect n/w APIs inside locks.
- From: Johnny Jacob <jjohnny src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-mapi] [Camel] Protect n/w APIs inside locks.
- Date: Mon, 25 Jan 2010 05:29:04 +0000 (UTC)
commit 33f84b9f0e33218737f99e3cc8acbf9570542f0d
Author: Johnny Jacob <johnnyjacob gmail com>
Date: Mon Jan 25 10:47:40 2010 +0530
[Camel] Protect n/w APIs inside locks.
src/camel/camel-mapi-folder.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index 6f0b175..403d1cb 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -1749,11 +1749,13 @@ mapi_folder_get_message( CamelFolder *folder, const char *uid, CamelException *e
options |= MAPI_OPTIONS_USE_PFSTORE;
}
+ CAMEL_SERVICE_REC_LOCK (mapi_store, connect_lock);
exchange_mapi_connection_fetch_item (id_folder, id_message,
camel_GetPropsList, G_N_ELEMENTS (camel_GetPropsList),
camel_build_name_id, NULL,
fetch_item_cb, &item,
options);
+ CAMEL_SERVICE_REC_UNLOCK (mapi_store, connect_lock);
if (item == NULL) {
camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Could not get message"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]