summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Talbot <chris@talbothome.com>2023-04-27 15:45:06 -0400
committerTeemu Ikonen <tpikonen@mailbox.org>2023-05-07 19:08:13 +0000
commit94d0971484787f3252f746aa39e5341f942103b5 (patch)
tree1ed62a976e27e2526a52ef0f78c80485707e7038
parent41221a1d47584e23a797540f5db1775afc28e438 (diff)
downloadgeoclue-master.tar.gz
gclue-web-source: make sure the accuracy is known before sending a submission queryHEADmaster
-rw-r--r--src/gclue-web-source.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gclue-web-source.c b/src/gclue-web-source.c
index bd4b657..92d94b8 100644
--- a/src/gclue-web-source.c
+++ b/src/gclue-web-source.c
@@ -565,6 +565,8 @@ on_submit_source_location_notify (GObject *source_object,
if (location == NULL ||
gclue_location_get_accuracy (location) >
SUBMISSION_ACCURACY_THRESHOLD ||
+ gclue_location_get_accuracy (location) ==
+ GCLUE_LOCATION_ACCURACY_UNKNOWN ||
gclue_location_get_timestamp (location) <
web->priv->last_submitted + SUBMISSION_TIME_THRESHOLD)
return;