From 59f988bb46de8cd438229c0d0ca2f03391561438 Mon Sep 17 00:00:00 2001 From: Doug Turner Date: Tue, 13 Nov 2012 15:03:06 -0800 Subject: [PATCH] Bug 809758 - Ensure sGeoInitPending is set to false prior to notifying ServiceReady. r=gwagner. a=blocking-basecamp --- dom/src/geolocation/nsGeolocation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dom/src/geolocation/nsGeolocation.cpp b/dom/src/geolocation/nsGeolocation.cpp index 59d11e0b1a4..9688d184a3c 100644 --- a/dom/src/geolocation/nsGeolocation.cpp +++ b/dom/src/geolocation/nsGeolocation.cpp @@ -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; } }