summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-11-05 18:32:11 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-11-06 13:05:51 +0100
commit3038cdbbf3bddc49f6a58dda710a8e080dcb9ec5 (patch)
treee7c1dc3445040852935c3ebf80d137c409da5dc5 /src
parent44570c1d303ea169157f82034ef3af42f73d9e8d (diff)
downloadqtlocation-mapboxgl-3038cdbbf3bddc49f6a58dda710a8e080dcb9ec5.tar.gz
fix various issues in curl bindings related to tile cancelation
Diffstat (limited to 'src')
-rw-r--r--src/map/tile_data.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/tile_data.cpp b/src/map/tile_data.cpp
index aa48fd00fe..44628e8b3e 100644
--- a/src/map/tile_data.cpp
+++ b/src/map/tile_data.cpp
@@ -75,7 +75,10 @@ void TileData::request() {
void TileData::cancel() {
if (state != State::obsolete) {
state = State::obsolete;
- req.reset();
+ if (req) {
+ req->cancel();
+ req.reset();
+ }
}
}