Skip to content

Commit

Permalink
HPCC4J-624 RowServiceInputStream handle read before close cleanup (#738)
Browse files Browse the repository at this point in the history
Signed-off-by: James McMullan [email protected]
  • Loading branch information
jpmcmu authored Aug 2, 2024
1 parent da135fb commit 76ab9f4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,6 @@ private int startFetch()
{
try
{
// Read handle before closing
this.dis.readInt();

close();
}
catch (IOException e)
Expand Down Expand Up @@ -889,7 +886,8 @@ else if (this.handle == 0)
{
if (dataLen == 0)
{
dataLen = dis.readInt(); // need to read addl int here ...
// Read handle before closing
dis.readInt();
close();
return 0;
}
Expand Down

0 comments on commit 76ab9f4

Please sign in to comment.