(subscribe_folder): add a missing UNLOCK
authorDan Winship <danw@src.gnome.org>
Fri, 19 Jan 2001 21:34:42 +0000 (21:34 +0000)
committerDan Winship <danw@src.gnome.org>
Fri, 19 Jan 2001 21:34:42 +0000 (21:34 +0000)
camel/ChangeLog
camel/providers/imap/camel-imap-store.c

index 8590b77..f3b4e4c 100644 (file)
@@ -11,6 +11,7 @@
        (get_subscribed_folders_by_hand): If LISTing a subscribed folder
        doesn't return a LIST response, just ignore that folder. Yay
        RFC2060.
+       (subscribe_folder): add a missing UNLOCK
 
 2001-01-19  Kjartan Maraas  <kmaraas@gnome.org>
 
index 0ed99e8..f36d5fa 100644 (file)
@@ -933,6 +933,7 @@ subscribe_folder (CamelStore *store, const char *folder_name,
        CAMEL_IMAP_STORE_LOCK(imap_store, command_lock);
        response = camel_imap_command (imap_store, NULL, ex,
                                       "SUBSCRIBE %S", folder_name);
+       CAMEL_IMAP_STORE_UNLOCK(imap_store, command_lock);
        if (response) {
                g_hash_table_insert (imap_store->subscribed_folders,
                                     g_strdup (folder_name),