Bug 809758 - Ensure sGeoInitPending is set to false prior to notifying ServiceReady. r=gwagner. a=blocking-basecamp

This commit is contained in:
Doug Turner 2012-11-13 15:03:06 -08:00
parent 1c428080a1
commit 59f988bb46

View File

@ -746,11 +746,10 @@ nsGeolocationService::HandleMozsettingValue(const bool aValue)
}
if (sGeoInitPending) {
sGeoInitPending = false;
for (uint32_t i = 0, length = mGeolocators.Length(); i < length; ++i) {
mGeolocators[i]->ServiceReady();
}
sGeoInitPending = false;
}
}