diff options
author | Vyacheslav Koscheev <vok1980@gmail.com> | 2016-01-22 23:09:11 +0600 |
---|---|---|
committer | Vyacheslav Koscheev <vok1980@gmail.com> | 2016-01-25 14:45:10 +0000 |
commit | 24e50e40caaa2f2e057180b8ed8179795e605e2a (patch) | |
tree | f2086ddd950bdb51b76b0e2541b0ae43dcfc29ca /src/plugins/geoservices/osm/qgeoroutereplyosm.cpp | |
parent | a41bd80784a01050dfb6b888cd90505259471f4f (diff) | |
download | qtlocation-24e50e40caaa2f2e057180b8ed8179795e605e2a.tar.gz |
Fix endless location requesting
This patch fixes the problem of lost positioning listeners, which was
registered in LocationManager, but does not persist in the `runningListeners`
collection. We can't call LocationManager.removeUpdates() for those listeners, that are not in `runningListeners`
and that's why LocationManager never ends to update location for them.
Listener can be registered in LocationManager and not added to
`runningListeners` collection at least in the following cases:
1. `startUpdates()` was called when location providers was disabled in
system.
2. `startUpdates()` was called twice, without `stopUpdates()`
Change-Id: If6777677cbb6f2ad9107fe2ac8496b7cdbb2d8d4
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/plugins/geoservices/osm/qgeoroutereplyosm.cpp')
0 files changed, 0 insertions, 0 deletions