summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarno <arno@renevier.net>2010-02-19 14:18:04 +0100
committerJussi Kukkonen <jku@linux.intel.com>2010-03-25 22:43:10 +0200
commit0dd88b50dd58827365f7a58b9397ab7f9ccca577 (patch)
tree5d258b6b4dfefc57a706cde61955584e918a765a
parenteb967eb8dee95b897a0dccdbda2bbed661b521c6 (diff)
Bug #22160: providers report online when connectivity is null0.12
-rw-r--r--src/master-provider.c8
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)) {