We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2dda9 commit f5bcc41Copy full SHA for f5bcc41
src/node_blob.cc
@@ -428,11 +428,13 @@ void Blob::Reader::Pull(const FunctionCallbackInfo<Value>& args) {
428
std::for_each(impl->dones.begin(),
429
impl->dones.end(),
430
[](bob::Done& done) { std::move(done)(0); });
431
+ impl->dones.clear();
432
Local<Value> argv[2] = {Uint32::New(env->isolate(), bob::STATUS_CONTINUE),
433
ArrayBuffer::New(env->isolate(), store)};
434
impl->reader->MakeCallback(fn, arraysize(argv), argv);
435
return;
436
}
437
+ impl->dones.clear(); // should not be necessary?
438
439
Local<Value> argv[2] = {
440
Int32::New(env->isolate(), status),
0 commit comments