fix various issues in curl bindings related to tile cancelation

This commit is contained in:
Konstantin Käfer
2014-11-05 18:32:11 +01:00
parent 44570c1d30
commit 3038cdbbf3
3 changed files with 176 additions and 148 deletions

View File

@@ -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();
}
}
}