mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 22:07:41 +00:00
Bug 488806 - network geolocation can spam server. r/sr=jst
This commit is contained in:
parent
ef2d6626fb
commit
e54832d798
@ -137,11 +137,12 @@ WifiGeoPositionProvider.prototype = {
|
||||
watch: function(c) {
|
||||
LOG("watch called");
|
||||
|
||||
if (!this.wifi_service)
|
||||
if (!this.wifi_service) {
|
||||
this.wifi_service = Cc["@mozilla.org/wifi/monitor;1"].getService(Components.interfaces.nsIWifiMonitor);
|
||||
|
||||
this.wifi_service.startWatching(this);
|
||||
this.update = c;
|
||||
this.wifi_service.startWatching(this);
|
||||
this.update = c;
|
||||
}
|
||||
},
|
||||
|
||||
shutdown: function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user