summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-10-10 14:47:33 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-10-10 14:47:33 -0400
commit6e8e50e371b519e86955f004f53ce622923c5aa6 (patch)
treeb1d03da878329035359c748514d0e47d5600e7f6
parent35f2c7fe23fd9265e22897bbcb6bcef66e9e7032 (diff)
downloadqtlocation-mapboxgl-6e8e50e371b519e86955f004f53ce622923c5aa6.tar.gz
call on_timeout with status 0 (success)
-rw-r--r--common/http_request_baton_curl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/http_request_baton_curl.cpp b/common/http_request_baton_curl.cpp
index 726198d1dd..3419dcc16d 100644
--- a/common/http_request_baton_curl.cpp
+++ b/common/http_request_baton_curl.cpp
@@ -263,7 +263,7 @@ void on_timeout(uv_timer_t *, int status) {
void start_timeout(CURLM *, long timeout_ms, void *) {
if (timeout_ms <= 0) {
- on_timeout(&timeout);
+ on_timeout(&timeout, 0);
} else {
uv_timer_start(&timeout, on_timeout, timeout_ms, 0);
}