Skip to content

Commit 5dbaf1f

Browse files
committed
quic: Fix assertion
1 parent c0a7a65 commit 5dbaf1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node_blob.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ void Blob::Reader::Pull(const FunctionCallbackInfo<Value>& args) {
372372
const DataQueue::Vec* vecs,
373373
size_t count,
374374
bob::Done doneCb) mutable {
375-
assert(!impl->reader);
375+
assert(impl->reader);
376376
Environment* env = impl->env;
377377
HandleScope handleScope(env->isolate());
378378
Local<Function> fn = impl->callback.Get(env->isolate());
@@ -406,7 +406,7 @@ void Blob::Reader::Pull(const FunctionCallbackInfo<Value>& args) {
406406
for (size_t n = 0; n < count; n++) impl->byte_count += vecs[n].len;
407407
}
408408
};
409-
assert(!impl->reader);
409+
assert(impl->reader);
410410
status = impl->reader->inner_->Pull(
411411
std::move(snext), node::bob::OPTIONS_SYNC, nullptr, 0);
412412
}
@@ -440,7 +440,7 @@ void Blob::Reader::Pull(const FunctionCallbackInfo<Value>& args) {
440440
return;
441441
}
442442
impl->dones.clear(); // should not be necessary?
443-
assert(!impl->reader);
443+
assert(impl->reader);
444444

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

0 commit comments

Comments
 (0)