Flip output stream buffer before writing

This commit is contained in:
Davide Depau committed 2023-11-21 00:30:27 +01:00
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 {