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/providers | |
parent | f8476f77b7330532b5439f2c7f7163bc9d845437 (diff) | |
download | gsoc2013-evolution-b86c7ca1cfa579947d9f85790d087832a3cde885.tar gsoc2013-evolution-b86c7ca1cfa579947d9f85790d087832a3cde885.tar.gz gsoc2013-evolution-b86c7ca1cfa579947d9f85790d087832a3cde885.tar.bz2 gsoc2013-evolution-b86c7ca1cfa579947d9f85790d087832a3cde885.tar.lz gsoc2013-evolution-b86c7ca1cfa579947d9f85790d087832a3cde885.tar.xz 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/providers')
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |