From 987fcdf3ca74ed93937657e0082f26ec2e6f6d6b Mon Sep 17 00:00:00 2001 From: arno Date: Fri, 19 Feb 2010 14:18:04 +0100 Subject: [PATCH] Bug #22160: providers report online when connectivity is null --- src/master-provider.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/master-provider.c b/src/master-provider.c index dd49ee7..c6ebbfc 100644 --- a/src/master-provider.c +++ b/src/master-provider.c @@ -977,6 +977,13 @@ gc_master_provider_new (const char *filename, } else { priv->provides = GEOCLUE_PROVIDE_NONE; } + + if (!connectivity) { + priv->provides &= ~GEOCLUE_PROVIDE_CACHEABLE_ON_CONNECTION; + priv->net_status = GEOCLUE_CONNECTIVITY_ONLINE; + priv->status = GEOCLUE_STATUS_AVAILABLE; + gc_master_provider_handle_status_change (provider); + } if (connectivity && (priv->provides & GEOCLUE_PROVIDE_CACHEABLE_ON_CONNECTION)) { -- 1.7.0