From 0f1d708cc00fd0b31f9515685f66a6626dce944e Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Thu, 30 Aug 2001 16:06:51 +0000 Subject: Instead of removing the folder from the folder cache here... 2001-08-30 Peter Williams * mail-ops.c (remove_folder_get): Instead of removing the folder from the folder cache here... (remove_folder_got): ... do it here, in the main thread. svn path=/trunk/; revision=12529 --- mail/mail-ops.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 3ec54474eb..eeaf6d8b0b 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1501,16 +1501,18 @@ remove_folder_get (struct _mail_msg *mm) g_free (full_name); m->removed = !camel_exception_is_set (&mm->ex); camel_object_unref (CAMEL_OBJECT (store)); - - /* Remove this folder from the folder cache */ - mail_folder_cache_remove_folder (m->uri); } static void remove_folder_got (struct _mail_msg *mm) { struct _remove_folder_msg *m = (struct _remove_folder_msg *)mm; - + + if (m->removed) { + /* Remove this folder from the folder cache */ + mail_folder_cache_remove_folder (m->uri); + } + if (m->done) m->done (m->uri, m->removed, m->data); } -- cgit v1.2.3