mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 22:26:20 +01:00
Ensure AsyncWorker options are persisted #2130
This commit is contained in:
@@ -229,6 +229,7 @@ Napi::Value metadata(const Napi::CallbackInfo& info) {
|
||||
// Join queue for worker thread
|
||||
Napi::Function callback = info[1].As<Napi::Function>();
|
||||
MetadataWorker *worker = new MetadataWorker(callback, baton, debuglog);
|
||||
worker->Receiver().Set("options", options);
|
||||
worker->Queue();
|
||||
|
||||
// Increment queued task counter
|
||||
|
||||
Reference in New Issue
Block a user