aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/imap/camel-imap-store.c')
-rw-r--r--camel/providers/imap/camel-imap-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index a8455b4619..7781316f27 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -1114,7 +1114,7 @@ imap_connect_online (CamelService *service, CamelException *ex)
if (camel_exception_is_set (ex))
camel_service_disconnect (service, TRUE, NULL);
- else
+ else if (camel_disco_diary_empty (disco_store->diary))
imap_store_refresh_folders (store, ex);
return !camel_exception_is_set (ex);