fix: stream protocols not completing (#21733)
This commit is contained in:
parent
7723c2c16d
commit
d68f17b32c
2 changed files with 22 additions and 0 deletions
|
@ -102,6 +102,9 @@ void NodeStreamLoader::ReadMore() {
|
|||
if (!ret.ToLocal(&buffer) || !node::Buffer::HasInstance(buffer)) {
|
||||
readable_ = false;
|
||||
is_reading_ = false;
|
||||
if (ended_) {
|
||||
NotifyComplete(result_);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue