diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-04 19:22:21 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-05 21:04:27 +0300 |
commit | e579199ac12b58e1099bba5f880a19588c867429 (patch) | |
tree | 78bd82a7aded3d5791a9c30bedc9fd1087483913 /platform/android/src/run_loop_impl.hpp | |
parent | 70d4ebb347b4ee0675c8e0078a8f69eb567bd252 (diff) | |
download | qtlocation-mapboxgl-e579199ac12b58e1099bba5f880a19588c867429.tar.gz |
[android] Fix a bug when canceling tasks
If the next task in the queue gets canceled, we need to
adjust the iterator to the next task, otherwise a canceled
task gets executed.
Diffstat (limited to 'platform/android/src/run_loop_impl.hpp')
-rw-r--r-- | platform/android/src/run_loop_impl.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/src/run_loop_impl.hpp b/platform/android/src/run_loop_impl.hpp index 1ca3dbc61a..cb553d1f8a 100644 --- a/platform/android/src/run_loop_impl.hpp +++ b/platform/android/src/run_loop_impl.hpp @@ -52,6 +52,7 @@ private: std::recursive_mutex mtx; std::list<Runnable*> runnables; + std::list<Runnable*>::iterator nextRunnable; }; } // namespace util |