Skip to content

Commit

Permalink
Fix HashJoin not always being marked as readable
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jun 11, 2024
1 parent 3fbc461 commit 114b96e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion join/HashJoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ class HashJoin extends AsyncIterator
this.left.on('error', (error) => this.destroy(error));
this.right.on('error', (error) => this.destroy(error));

this.readable = false;
if (this.left.readable || this.right.readable)
{
this.readable = true;
}

this.left.on('end', allowJoining.bind(this));

Expand Down

0 comments on commit 114b96e

Please sign in to comment.