From d6a9790072afc82d29e046f98b7223dc618bf9a6 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 19 Feb 2001 21:41:51 +0000 Subject: Unref the driver here, in the subthread, so we dont block the gui while it 2001-02-20 Not Zed * 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 --- mail/ChangeLog | 7 +++++++ mail/mail-ops.c | 11 ++++++----- 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 + + * 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 * 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); } -- cgit v1.2.3