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 12, 2024
1 parent 311db73 commit b636f58
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 b636f58

Please sign in to comment.