diff options
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/storage/default/request.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mbgl/storage/default/request.hpp b/include/mbgl/storage/default/request.hpp index 81ed14a568..e26d59e2d9 100644 --- a/include/mbgl/storage/default/request.hpp +++ b/include/mbgl/storage/default/request.hpp @@ -22,7 +22,6 @@ class Request : private util::noncopyable { public: using Callback = std::function<void(const Response &)>; Request(const Resource &resource, uv_loop_t *loop, Callback callback); - ~Request(); public: // May be called from any thread. @@ -33,6 +32,8 @@ public: void cancel(); private: + ~Request(); + void invoke(); static void notifyCallback(uv_async_t *async); static void cancelCallback(uv_async_t *async); |