From 94d0971484787f3252f746aa39e5341f942103b5 Mon Sep 17 00:00:00 2001 From: Chris Talbot Date: Thu, 27 Apr 2023 15:45:06 -0400 Subject: gclue-web-source: make sure the accuracy is known before sending a submission query --- src/gclue-web-source.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.3