aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
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/component-factory.c
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/component-factory.c')
-rw-r--r--mail/component-factory.c4
1 files changed, 2 insertions, 2 deletions
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;
}