Flip output stream buffer before writing
This commit is contained in:
1 parent
a18da122a4
commit
4591b05bcf
1 file changed
+2
@@ -148,6 +148,8 @@ class BlockDeviceOutputStream(
|
||||
limit(capacity())
|
||||
}
|
||||
|
||||
oldByteBuffer.flip()
|
||||
|
||||
val synchronizationMutex = Mutex(locked = true)
|
||||
launchInIoThread {
|
||||
deviceMutex.withLock {
|
||||
|
||||
Reference in new issue
Block a user