From 114b96e3dd0fc1415905ad8b8fe4e91ffd1d6e2f Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Tue, 11 Jun 2024 14:57:06 +0200 Subject: [PATCH] Fix HashJoin not always being marked as readable --- join/HashJoin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/join/HashJoin.js b/join/HashJoin.js index 88fc285..e5f601b 100644 --- a/join/HashJoin.js +++ b/join/HashJoin.js @@ -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));