Commit e8665a82 authored by Zeeshan Ali's avatar Zeeshan Ali

web-source: Don't refresh location on _start

Since now wifi interface proxy is created async in Wifi (the only
inheriting class), calling _refresh from _start() could easily mean that
location query is created while we don't have an interface (or list of
BSS proxies, which are also created async) and end-up making a
geoip-only query to the server. Also we can easily end-up not making the
wifi query at all if geoip-only query is still in process since we only
allow one query at a time.

Let's leave this to subclasses (we only have 1 right now anyway).
parent fb59be4c
...@@ -257,7 +257,6 @@ gclue_web_source_start (GClueLocationSource *source) ...@@ -257,7 +257,6 @@ gclue_web_source_start (GClueLocationSource *source)
if (!base_class->start (source)) if (!base_class->start (source))
return FALSE; return FALSE;
gclue_web_source_refresh (GCLUE_WEB_SOURCE (source));
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment