aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-05-06 19:53:39 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-05-06 19:53:39 +0800
commitaa8aebb6933ade7c6ec9029cbc1819b16afdbe83 (patch)
treef9af8288d0f468144ccc30eaac890dce87a7da67 /mail
parent95f58c95b6915c7003a52a652fa6aff2bb86b613 (diff)
downloadgsoc2013-evolution-aa8aebb6933ade7c6ec9029cbc1819b16afdbe83.tar
gsoc2013-evolution-aa8aebb6933ade7c6ec9029cbc1819b16afdbe83.tar.gz
gsoc2013-evolution-aa8aebb6933ade7c6ec9029cbc1819b16afdbe83.tar.bz2
gsoc2013-evolution-aa8aebb6933ade7c6ec9029cbc1819b16afdbe83.tar.lz
gsoc2013-evolution-aa8aebb6933ade7c6ec9029cbc1819b16afdbe83.tar.xz
gsoc2013-evolution-aa8aebb6933ade7c6ec9029cbc1819b16afdbe83.tar.zst
gsoc2013-evolution-aa8aebb6933ade7c6ec9029cbc1819b16afdbe83.zip
Check all threads are idle as well, using new e_thread_busy call. Should
2002-05-06 Not Zed <NotZed@Ximian.com> * component-factory.c (idle_quit): Check all threads are idle as well, using new e_thread_busy call. Should fix #22553? Also sleep a little bit, to let the other threads run. svn path=/trunk/; revision=16684
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/component-factory.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index bad929809b..de821302a1 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2002-05-06 Not Zed <NotZed@Ximian.com>
+
+ * component-factory.c (idle_quit): Check all threads are idle as
+ well, using new e_thread_busy call. Should fix #22553? Also
+ sleep a little bit, to let the other threads run.
+
2002-05-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (sig_new_text): Update the code to actually
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 32adeb54c7..05e3bef466 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -837,8 +837,8 @@ idle_quit (gpointer user_data)
static int shutdown_shutdown = FALSE;
if (!shutdown_shutdown) {
- if (mail_msg_active(-1)) {
- /* short sleep? */
+ if (e_thread_busy(NULL) || mail_msg_active(-1)) {
+ usleep(10000);
return TRUE;
}