[evolution-data-server] Bug #666327 - [IMAP] Missing unlock in camel_imap_folder_fetch_data



commit 72240b827de0744981bf79033911965f73052a41
Author: Alban Browaeys <prahal yahoo com>
Date:   Wed Dec 21 09:47:08 2011 +0100

    Bug #666327 - [IMAP] Missing unlock in camel_imap_folder_fetch_data
    
    Add misssing service unlock in the case of fast switch between folders
    with non cached messages. Missed from previous commit:
    74fcab535c0f50a27742c05e94036b8370ea9173 .

 camel/providers/imap/camel-imap-folder.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 31a57c5..7b9b157 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -4427,6 +4427,7 @@ camel_imap_folder_fetch_data (CamelImapFolder *imap_folder,
 
 	if (!response) {
 		CAMEL_IMAP_FOLDER_REC_UNLOCK (imap_folder, cache_lock);
+		camel_service_unlock (CAMEL_SERVICE (store), CAMEL_SERVICE_REC_CONNECT_LOCK);
 		return NULL;
 	}
 
@@ -4441,8 +4442,8 @@ camel_imap_folder_fetch_data (CamelImapFolder *imap_folder,
 		stream = NULL;
 	}
 	camel_imap_response_free (store, response);
-	camel_service_unlock (CAMEL_SERVICE (store), CAMEL_SERVICE_REC_CONNECT_LOCK);
 	CAMEL_IMAP_FOLDER_REC_UNLOCK (imap_folder, cache_lock);
+	camel_service_unlock (CAMEL_SERVICE (store), CAMEL_SERVICE_REC_CONNECT_LOCK);
 	if (!stream) {
 		g_set_error (
 			error, CAMEL_ERROR,



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