[evolution-data-server] Bug 704871 - Fails to manage subscription on an NNTP account
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 704871 - Fails to manage subscription on an NNTP account
- Date: Sat, 3 Aug 2013 07:55:47 +0000 (UTC)
commit 7a7a96035b9f342a1a0e1d2673f61fdd3601ae4a
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
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]