From 98814270d119de51b9d871afbeb01b6191008c22 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Mon, 15 Jan 2001 21:35:40 +0000 Subject: Lock around the imap_rescan, which needs it. 2001-01-15 Peter Williams * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Lock around the imap_rescan, which needs it. svn path=/trunk/; revision=7513 --- camel/ChangeLog | 5 +++++ camel/providers/imap/camel-imap-folder.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'camel') 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 + + * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Lock around the + imap_rescan, which needs it. + 2001-01-15 Not Zed * 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; -- cgit v1.2.3