summaryrefslogtreecommitdiff
path: root/src/mbgl/map/raster_tile_data.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-01-14 20:59:17 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-01-15 17:04:08 +0100
commit32a2359e86bc86221682f1afa057b62f0f0be8c2 (patch)
tree3e566b6ad9417224af567b3de5d0670654dd9787 /src/mbgl/map/raster_tile_data.hpp
parentbd1f71cdbd4aa55ffa1beb61ddee1dd6da32412d (diff)
downloadqtlocation-mapboxgl-32a2359e86bc86221682f1afa057b62f0f0be8c2.tar.gz
[core] don't store error state
Previously, we could first get a stale response from cache, then immediately a "connection error" response that overwrote the error state variable. In the tileLoadingCompleteCallback, we'd only see the second overwritten error state and abort. This could lead to the map sometimes not being rendered at all until the user interacts with the map.
Diffstat (limited to 'src/mbgl/map/raster_tile_data.hpp')
-rw-r--r--src/mbgl/map/raster_tile_data.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/map/raster_tile_data.hpp b/src/mbgl/map/raster_tile_data.hpp
index 34a79cad4c..e8efde48e4 100644
--- a/src/mbgl/map/raster_tile_data.hpp
+++ b/src/mbgl/map/raster_tile_data.hpp
@@ -16,7 +16,7 @@ public:
RasterTileData(const TileID&, TexturePool&, Worker&);
~RasterTileData();
- using Callback = std::function<void()>;
+ using Callback = std::function<void(std::exception_ptr)>;
void request(const std::string& url,
const Callback& callback);