Bug 488806 - network geolocation can spam server. r/sr=jst

This commit is contained in:
Doug Turner 2009-04-17 09:28:14 -07:00
parent ef2d6626fb
commit e54832d798

View File

@ -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() {