From aa8aebb6933ade7c6ec9029cbc1819b16afdbe83 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 6 May 2002 11:53:39 +0000 Subject: Check all threads are idle as well, using new e_thread_busy call. Should 2002-05-06 Not Zed * 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 --- mail/ChangeLog | 6 ++++++ mail/component-factory.c | 4 ++-- 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 + + * 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 * 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; } -- cgit v1.2.3