aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
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')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/mail-ops.c11
2 files changed, 13 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index f0d2afe754..173aa89c07 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2001-02-16 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (receive_status): Dont do the thaw/freeze set here.
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);
}