зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1121497 - Need to stop location manager before start, r=dougt
This commit is contained in:
Родитель
f7de6cc231
Коммит
9712cec06b
|
@ -211,6 +211,8 @@ CoreLocationLocationProvider::Startup()
|
|||
mCLObjects = clObjs.forget();
|
||||
}
|
||||
|
||||
// Must be stopped before starting or response (success or failure) is not guaranteed
|
||||
[mCLObjects->mLocationManager stopUpdatingLocation];
|
||||
[mCLObjects->mLocationManager startUpdatingLocation];
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче