From 6144aa7af8d099158e6da714c00f59027903b944 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 | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/master-provider.c b/src/master-provider.c index dd49ee7..790c043 100644 --- a/src/master-provider.c +++ b/src/master-provider.c @@ -977,6 +977,14 @@ gc_master_provider_new (const char *filename, } else { priv->provides = GEOCLUE_PROVIDE_NONE; } + + if (!connectivity && + (priv->required_resources & GEOCLUE_RESOURCE_NETWORK)) { + 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