[node] Fix memory test hanging after GlyphAtlas refactoring (#8394)

Replies are assumed to be asynchronous after e3500c1f79.
This commit is contained in:
Thiago Marcos P. Santos
2017-03-14 22:19:58 +02:00
committed by Bobby Sudekum
parent bd05bcfe9f
commit 5700c99e55
4 changed files with 73 additions and 37 deletions

View File

@@ -8,6 +8,9 @@
#include <mbgl/storage/resource.hpp>
#include <mbgl/storage/file_source.hpp>
#include <mbgl/util/async_task.hpp>
#include <memory>
namespace node_mbgl {
@@ -35,9 +38,12 @@ public:
void Execute();
private:
void doExecute();
NodeMap* target;
mbgl::FileSource::Callback callback;
NodeAsyncRequest* asyncRequest = nullptr;
std::unique_ptr<mbgl::util::AsyncTask> asyncExecute;
};
}