aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/imap/camel-imap-store.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index a6518015d0..7ad271ab6d 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-07 Dan Winship <danw@ximian.com>
+
+ * providers/imap/camel-imap-store.c (get_folder_online): Unlock
+ the store before returning error. (noted by NotZed)
+
2001-10-06 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_decode_text): Fix a slight error in
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index efe60cfba7..c46cee1b29 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -948,8 +948,10 @@ get_folder_online (CamelStore *store, const char *folder_name,
response = camel_imap_command (imap_store, NULL, NULL,
"SELECT %F", folder_name);
if (!response) {
- if (!flags & CAMEL_STORE_FOLDER_CREATE)
+ if (!flags & CAMEL_STORE_FOLDER_CREATE) {
+ CAMEL_IMAP_STORE_UNLOCK (imap_store, command_lock);
return no_such_folder (folder_name, ex);
+ }
response = camel_imap_command (imap_store, NULL, ex,
"CREATE %F", folder_name);