aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
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;
}