mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-26 20:06:37 -08:00
1 parent
9e714c4192
commit
05f689913f
4 files changed
+6
-12
No files matched your search
@@ -779,7 +779,7 @@ open class Database {
|
||||
@Throws(DatabaseOutputException::class)
|
||||
fun saveData(
|
||||
cacheFile: File,
|
||||
databaseOutputStream: OutputStream?,
|
||||
databaseOutputStream: () -> OutputStream?,
|
||||
isNewLocation: Boolean,
|
||||
masterCredential: MasterCredential?,
|
||||
challengeResponseRetriever: (HardwareKey, ByteArray?) -> ByteArray
|
||||
@@ -820,7 +820,7 @@ open class Database {
|
||||
}
|
||||
}
|
||||
// Copy from the cache to the final stream
|
||||
databaseOutputStream?.use { outputStream ->
|
||||
databaseOutputStream.invoke()?.use { outputStream ->
|
||||
cacheFile.inputStream().use { inputStream ->
|
||||
inputStream.readAllBytes { buffer ->
|
||||
outputStream.write(buffer)
|
||||
|
||||
Reference in new issue
Block a user