Skip to content

Commit

Permalink
Revert "Add synchronized"
Browse files Browse the repository at this point in the history
This reverts commit aac200a.
  • Loading branch information
viirya committed Aug 11, 2024
1 parent fcda7c0 commit 6cc5438
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ class ArrowReaderIterator(channel: ReadableByteChannel, source: String)
// Release the previous batch.
// If it is not released, when closing the reader, arrow library will complain about
// memory leak.
synchronized {
if (currentBatch != null) {
currentBatch.close()
}
if (currentBatch != null) {
currentBatch.close()
}

batch = nextBatch()
Expand Down

0 comments on commit 6cc5438

Please sign in to comment.