aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-rdf.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-10-11 03:54:28 +0800
committerIain Holmes <iain@src.gnome.org>2001-10-11 03:54:28 +0800
commit44f3c6d906ce7d69637b5bd5ac82059f8c0c0ab8 (patch)
tree65913a083490d2ee70118166b618a644ad920165 /my-evolution/e-summary-rdf.c
parent6e1a9c1903b5ae66cd267e675e6f50034e12ba85 (diff)
downloadgsoc2013-evolution-44f3c6d906ce7d69637b5bd5ac82059f8c0c0ab8.tar.gz
gsoc2013-evolution-44f3c6d906ce7d69637b5bd5ac82059f8c0c0ab8.tar.zst
gsoc2013-evolution-44f3c6d906ce7d69637b5bd5ac82059f8c0c0ab8.zip
Fixed polling in offline mode
svn path=/trunk/; revision=13562
Diffstat (limited to 'my-evolution/e-summary-rdf.c')
-rw-r--r--my-evolution/e-summary-rdf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c
index fb2c1ccfae..1b54cb2288 100644
--- a/my-evolution/e-summary-rdf.c
+++ b/my-evolution/e-summary-rdf.c
@@ -433,6 +433,11 @@ e_summary_rdf_update (ESummary *summary)
{
GList *r;
+ if (summary->rdf->online == FALSE) {
+ g_warning ("%s: Repolling but offline", __FUNCTION__);
+ return TRUE;
+ }
+
for (r = summary->rdf->rdfs; r; r = r->next) {
RDF *rdf = r->data;
@@ -604,6 +609,7 @@ e_summary_rdf_init (ESummary *summary)
connection->callback_closure = NULL;
rdf->connection = connection;
+ rdf->online = TRUE;
e_summary_add_online_connection (summary, connection);
e_summary_add_protocol_listener (summary, "rdf", e_summary_rdf_protocol, rdf);