aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-20 05:41:51 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-20 05:41:51 +0800
commitd6a9790072afc82d29e046f98b7223dc618bf9a6 (patch)
tree7819fe6d6cc29dfbcb0cafbea937d70f62203ca6 /mail/mail-ops.c
parent778498a42da755757f33740ea5f03e089864dd41 (diff)
downloadgsoc2013-evolution-d6a9790072afc82d29e046f98b7223dc618bf9a6.tar
gsoc2013-evolution-d6a9790072afc82d29e046f98b7223dc618bf9a6.tar.gz
gsoc2013-evolution-d6a9790072afc82d29e046f98b7223dc618bf9a6.tar.bz2
gsoc2013-evolution-d6a9790072afc82d29e046f98b7223dc618bf9a6.tar.lz
gsoc2013-evolution-d6a9790072afc82d29e046f98b7223dc618bf9a6.tar.xz
gsoc2013-evolution-d6a9790072afc82d29e046f98b7223dc618bf9a6.tar.zst
gsoc2013-evolution-d6a9790072afc82d29e046f98b7223dc618bf9a6.zip
Unref the driver here, in the subthread, so we dont block the gui while it
2001-02-20 Not Zed <NotZed@Ximian.com> * mail-ops.c (fetch_mail_fetch): Unref the driver here, in the subthread, so we dont block the gui while it sync's all the folders. (fetch_mail_fetched): Rewmoved above code from here. svn path=/trunk/; revision=8278
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index cb17b8b31a..6c5f3b5693 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -329,6 +329,12 @@ fetch_mail_fetch(struct _mail_msg *mm)
if (m->cancel)
camel_operation_unregister(m->cancel);
+
+ /* we unref this here as it may have more work to do (syncing
+ folders and whatnot) before we are really done */
+ /* should this be cancellable too? (i.e. above unregister above) */
+ camel_object_unref((CamelObject *)m->fmsg.driver);
+ m->fmsg.driver = NULL;
}
static void
@@ -336,11 +342,6 @@ fetch_mail_fetched(struct _mail_msg *mm)
{
struct _fetch_mail_msg *m = (struct _fetch_mail_msg *)mm;
- /* we unref this here as it may have more work to do (syncing
- folders and whatnot) before we are really done */
- camel_object_unref((CamelObject *)m->fmsg.driver);
- m->fmsg.driver = NULL;
-
if (m->done)
m->done(m->source_uri, m->data);
}