diff options
author | Dan Winship <danw@src.gnome.org> | 2001-10-09 00:29:32 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-10-09 00:29:32 +0800 |
commit | b86c7ca1cfa579947d9f85790d087832a3cde885 (patch) | |
tree | 48e6800d11039cb3fd54a8be2ca709a79652d1df /camel | |
parent | f8476f77b7330532b5439f2c7f7163bc9d845437 (diff) | |
download | gsoc2013-evolution-b86c7ca1cfa579947d9f85790d087832a3cde885.tar.gz gsoc2013-evolution-b86c7ca1cfa579947d9f85790d087832a3cde885.tar.zst gsoc2013-evolution-b86c7ca1cfa579947d9f85790d087832a3cde885.zip |
Unlock the store before returning error. (noted by NotZed)
* providers/imap/camel-imap-store.c (get_folder_online): Unlock
the store before returning error. (noted by NotZed)
svn path=/trunk/; revision=13501
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 4 |
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); |