aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-01-16 05:35:40 +0800
committerPeter Williams <peterw@src.gnome.org>2001-01-16 05:35:40 +0800
commit98814270d119de51b9d871afbeb01b6191008c22 (patch)
tree2d5e4da24bd63378ee3a8d67420b3162a7a92552
parent359bc474c015e2d54001204c4015f3216d408591 (diff)
downloadgsoc2013-evolution-98814270d119de51b9d871afbeb01b6191008c22.tar
gsoc2013-evolution-98814270d119de51b9d871afbeb01b6191008c22.tar.gz
gsoc2013-evolution-98814270d119de51b9d871afbeb01b6191008c22.tar.bz2
gsoc2013-evolution-98814270d119de51b9d871afbeb01b6191008c22.tar.lz
gsoc2013-evolution-98814270d119de51b9d871afbeb01b6191008c22.tar.xz
gsoc2013-evolution-98814270d119de51b9d871afbeb01b6191008c22.tar.zst
gsoc2013-evolution-98814270d119de51b9d871afbeb01b6191008c22.zip
Lock around the imap_rescan, which needs it.
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. svn path=/trunk/; revision=7513
-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;