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/component-factory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/component-factory.c') 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