aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/imap/camel-imap-folder.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 11d938abe7..43e7245117 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-15 Peter Williams <peterw@ximian.com>
+
+ * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Lock around the
+ imap_rescan, which needs it.
+
2001-01-15 Not Zed <NotZed@Ximian.com>
* camel-remote-store.c (socket_connect): A cancellable connection
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 3d8efbf34b..373ded8bde 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -198,7 +198,9 @@ camel_imap_folder_new (CamelStore *parent, const char *folder_name,
return NULL;
}
+ CAMEL_IMAP_STORE_LOCK(imap_store, command_lock);
imap_rescan (folder, exists, ex);
+ CAMEL_IMAP_STORE_UNLOCK(imap_store, command_lock);
if (camel_exception_is_set (ex)) {
camel_object_unref (CAMEL_OBJECT (folder));
return NULL;