Skip to content

Commit f5bcc41

Browse files
committed
quic: Add dones clear, potentially fix mac issue
1 parent 2f2dda9 commit f5bcc41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node_blob.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,13 @@ void Blob::Reader::Pull(const FunctionCallbackInfo<Value>& args) {
428428
std::for_each(impl->dones.begin(),
429429
impl->dones.end(),
430430
[](bob::Done& done) { std::move(done)(0); });
431+
impl->dones.clear();
431432
Local<Value> argv[2] = {Uint32::New(env->isolate(), bob::STATUS_CONTINUE),
432433
ArrayBuffer::New(env->isolate(), store)};
433434
impl->reader->MakeCallback(fn, arraysize(argv), argv);
434435
return;
435436
}
437+
impl->dones.clear(); // should not be necessary?
436438

437439
Local<Value> argv[2] = {
438440
Int32::New(env->isolate(), status),

0 commit comments

Comments
 (0)