Skip to content

Commit

Permalink
Flip buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin authored and aarondav committed Oct 10, 2014
1 parent f6c220d commit 5d98ce3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ abstract class BlockTransferService extends Closeable {
lock.synchronized {
val ret = ByteBuffer.allocate(data.size.toInt)
ret.put(data.nioByteBuffer())
ret.flip()
result = Left(new NioManagedBuffer(ret))
lock.notify()
}
Expand Down

0 comments on commit 5d98ce3

Please sign in to comment.