[evolution/gnome-3-32] I#479 - Call mail account refresh also after going online ][



commit 7803fcc2d7985e7e188d4a7adcf60446b6c08d28
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 27 19:02:04 2019 +0200

    I#479 - Call mail account refresh also after going online ][
    
    The CamelOfflineStore did not reconnect once it disconnected, only
    after whole CamelSession went offline and online.
    
    Related to https://gitlab.gnome.org/GNOME/evolution/issues/479

 src/libemail-engine/mail-folder-cache.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libemail-engine/mail-folder-cache.c b/src/libemail-engine/mail-folder-cache.c
index a06d7409c6..d86e544202 100644
--- a/src/libemail-engine/mail-folder-cache.c
+++ b/src/libemail-engine/mail-folder-cache.c
@@ -2155,8 +2155,8 @@ mail_folder_cache_note_store_thread (ESimpleAsyncResult *simple,
                gboolean store_online = TRUE;
 
                if (CAMEL_IS_OFFLINE_STORE (service)) {
-                       store_online = camel_offline_store_get_online (
-                               CAMEL_OFFLINE_STORE (service));
+                       store_online = camel_offline_store_get_online (CAMEL_OFFLINE_STORE (service)) &&
+                               camel_service_get_connection_status (service) == CAMEL_SERVICE_CONNECTED;
                }
 
                if (!store_online) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]