diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-11-02 16:14:41 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-11-02 17:24:40 +0100 |
commit | 4d5c6333be52aae4a9c72f4b01941e16ead503f4 (patch) | |
tree | 1d6e34faf4184e3ed8a14dc2be9352a8836bc78b /src/mbgl/storage/http_context_base.cpp | |
parent | 52558acde88f6fe813f691758643cfe8b8aeae6e (diff) | |
download | qtlocation-mapboxgl-4d5c6333be52aae4a9c72f4b01941e16ead503f4.tar.gz |
[core] move retry logic to DefaultFileSource
Diffstat (limited to 'src/mbgl/storage/http_context_base.cpp')
-rw-r--r-- | src/mbgl/storage/http_context_base.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mbgl/storage/http_context_base.cpp b/src/mbgl/storage/http_context_base.cpp index 8b09fc4dc2..a25f1b9185 100644 --- a/src/mbgl/storage/http_context_base.cpp +++ b/src/mbgl/storage/http_context_base.cpp @@ -2,29 +2,4 @@ namespace mbgl { -HTTPContextBase::HTTPContextBase(uv_loop_t* loop_) - : reachability(loop_, [this] { retryRequests(); }) { - NetworkStatus::Subscribe(reachability.get()); - reachability.unref(); -} - -HTTPContextBase::~HTTPContextBase() { - assert(requests.empty()); - NetworkStatus::Unsubscribe(reachability.get()); -} - -void HTTPContextBase::addRequest(HTTPRequestBase* request) { - requests.insert(request); -} - -void HTTPContextBase::removeRequest(HTTPRequestBase* request) { - requests.erase(request); -} - -void HTTPContextBase::retryRequests() { - for (auto request : requests) { - request->retry(); - } -} - } |