diff --git a/appholder/src/main/java/com/android/identity/wallet/transfer/TransferManager.kt b/appholder/src/main/java/com/android/identity/wallet/transfer/TransferManager.kt index 3376c2763..3318b6414 100644 --- a/appholder/src/main/java/com/android/identity/wallet/transfer/TransferManager.kt +++ b/appholder/src/main/java/com/android/identity/wallet/transfer/TransferManager.kt @@ -264,7 +264,9 @@ class TransferManager private constructor(private val context: Context) { fun sendResponse(deviceResponse: ByteArray, closeAfterSending: Boolean) { communication.sendResponse(deviceResponse, closeAfterSending) - disconnect(!closeAfterSending) + if (closeAfterSending) { + disconnect(false) + } } fun readDocumentEntries(documentName: String): DocumentElements {