[node] Fix memory test hanging after GlyphAtlas refactoring (#8394)
Replies are assumed to be asynchronous after e3500c1f79.
This commit is contained in:
committed by
Bobby Sudekum
parent
bd05bcfe9f
commit
5700c99e55
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user