summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-07-22 16:29:08 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-07-22 16:29:08 +0300
commit036acf23cd171037d36bc2f4fdd4de0a657dfe9d (patch)
tree1cf62a47415da3a7dd89f5cfb344d6a7b6398e72
parent4dd734f040540e7feac6a335d2afec188d67fe77 (diff)
downloadqtlocation-mapboxgl-036acf23cd171037d36bc2f4fdd4de0a657dfe9d.tar.gz
[default] uv_run should use UV_RUN_NOWAIT
UV_RUN_ONCE might block and that is not the semantics we expect from RunLoop::runOnce().
-rw-r--r--platform/default/run_loop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/run_loop.cpp b/platform/default/run_loop.cpp
index 29ebe168f5..1ebbade7ab 100644
--- a/platform/default/run_loop.cpp
+++ b/platform/default/run_loop.cpp
@@ -158,7 +158,7 @@ void RunLoop::run() {
void RunLoop::runOnce() {
MBGL_VERIFY_THREAD(tid);
- uv_run(impl->loop, UV_RUN_ONCE);
+ uv_run(impl->loop, UV_RUN_NOWAIT);
}
void RunLoop::stop() {