[evolution-data-server/gnome-3-8] Bug 704871 - Fails to manage subscription on an NNTP account



commit bf1b885e4c23244469ae0e3c91788ea8fba6aac2
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Aug 3 09:55:41 2013 +0200

    Bug 704871 - Fails to manage subscription on an NNTP account
    
    (cherry picked from commit 7a7a96035b9f342a1a0e1d2673f61fdd3601ae4a)

 camel/providers/nntp/camel-nntp-store.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c
index bfc01f5..6c05ed6 100644
--- a/camel/providers/nntp/camel-nntp-store.c
+++ b/camel/providers/nntp/camel-nntp-store.c
@@ -1292,8 +1292,17 @@ nntp_get_folder_info_online (CamelStore *store,
                              GCancellable *cancellable,
                              GError **error)
 {
-       return nntp_get_folder_info (
-               store, top, flags, TRUE, cancellable, error);
+       CamelService *service;
+       CamelFolderInfo *info = NULL;
+
+       service = CAMEL_SERVICE (store);
+
+       /* Reconnect if necessary. */
+       if (camel_service_connect_sync (service, cancellable, error))
+               info = nntp_get_folder_info (
+                       store, top, flags, TRUE, cancellable, error);
+
+       return info;
 }
 
 static CamelFolderInfo *


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