diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-03-08 09:29:44 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-03-08 10:28:01 -0800 |
commit | 8fee0f33c081d339a143306a0c82baacdac5a74c (patch) | |
tree | 77988df39646afa76159333ef362a9a29eccd595 /platform/default/run_loop.cpp | |
parent | aaf9e8256fa5f9d5cc9f4acfebf28b28d8c543e8 (diff) | |
download | qtlocation-mapboxgl-8fee0f33c081d339a143306a0c82baacdac5a74c.tar.gz |
[core] Fix RunLoop::run() behavior when called a second time
Diffstat (limited to 'platform/default/run_loop.cpp')
-rw-r--r-- | platform/default/run_loop.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/default/run_loop.cpp b/platform/default/run_loop.cpp index 76c01b80b7..6230e8f1ab 100644 --- a/platform/default/run_loop.cpp +++ b/platform/default/run_loop.cpp @@ -151,6 +151,7 @@ void RunLoop::push(std::shared_ptr<WorkTask> task) { void RunLoop::run() { MBGL_VERIFY_THREAD(tid); + uv_ref(impl->holderHandle()); uv_run(impl->loop, UV_RUN_DEFAULT); } |