aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-02-22 18:49:55 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-02-22 18:49:55 +0800
commitefb45db411d5f64e95cc2eba2501ff3f73239cb3 (patch)
tree1b296f58812fe164aa0a9bd600dbe46a3fe30121 /mail/mail-component.c
parentbdb224def86d58bde4218fa8ed21d689242923f9 (diff)
downloadgsoc2013-evolution-efb45db411d5f64e95cc2eba2501ff3f73239cb3.tar.gz
gsoc2013-evolution-efb45db411d5f64e95cc2eba2501ff3f73239cb3.tar.zst
gsoc2013-evolution-efb45db411d5f64e95cc2eba2501ff3f73239cb3.zip
** Fix for bug #512776
2008-02-22 Milan Crha <mcrha@redhat.com> ** Fix for bug #512776 * Changes below prevents deadlock on start or send/receive. * mail-send-recv.c: (struct _refresh_folders_msg), (refresh_folders_exec), (refresh_folders_free), (receive_update_got_folderinfo): Do not look for active folders in main thread, rather do it in other thread and free folder info later. * mail-ops.h: (mail_get_folderinfo): * mail-ops.c: (struct _get_folderinfo_msg), (get_folderinfo_done), (get_folderinfo_free), (mail_get_folderinfo): * mail-folder-cache.h: (mail_note_store): * mail-folder-cache.c: (struct _update_data), (update_folders), (mail_note_store): * mail-component.c: (mc_add_store_done): The 'done' function returns if we can free folder info or not. svn path=/trunk/; revision=35071
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c
index 879c346494..0e5e19a398 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -206,7 +206,7 @@ store_info_unref(struct _store_info *si)
g_free(si);
}
-static void
+static gboolean
mc_add_store_done(CamelStore *store, CamelFolderInfo *info, void *data)
{
struct _store_info *si = data;
@@ -223,6 +223,8 @@ mc_add_store_done(CamelStore *store, CamelFolderInfo *info, void *data)
}
store_info_unref(si);
+
+ return TRUE;
}
/* Utility functions. */