diff options
author | Teemu Ikonen <tpikonen@mailbox.org> | 2021-12-02 12:09:23 +0200 |
---|---|---|
committer | Teemu Ikonen <tpikonen@mailbox.org> | 2021-12-04 13:46:11 +0200 |
commit | df071a060190de925628afd0aa2e9ec739bf90d8 (patch) | |
tree | f66edd0e92dfb364fbbb3ffdd90e77bb5a19158b | |
parent | 13d8e9b0c8d8e76c6df56244d86787592fc58b22 (diff) |
wifi: Remove redundant call to gclue_location_source_set_location
Location is already set in GClueWeb, after the MLS query. Since the
speed and heading for web/wifi source are set by computing them from the
previous location, setting the same location twice made speed and
heading always undefined.
-rw-r--r-- | src/gclue-wifi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gclue-wifi.c b/src/gclue-wifi.c index f7eb54a..2108195 100644 --- a/src/gclue-wifi.c +++ b/src/gclue-wifi.c @@ -1288,9 +1288,6 @@ refresh_cb (GObject *source_object, g_hash_table_size (wifi->priv->location_cache), cache_hit_ratio); - /* Update the location and return. */ - gclue_location_source_set_location (GCLUE_LOCATION_SOURCE (source), location); - g_task_return_pointer (task, g_steal_pointer (&location), g_object_unref); } |