lpac_jni: Clear exceptions before setting response
This commit is contained in:
parent
dcae65011e
commit
96bc9865ff
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,7 @@ class LocalProfileAssistantImpl(
|
|||
override fun transmit(tx: ByteArray): ByteArray =
|
||||
try {
|
||||
apduInterface.transmit(tx).also {
|
||||
lastApduException = null
|
||||
lastApduResponse = it
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
|
@ -61,6 +62,7 @@ class LocalProfileAssistantImpl(
|
|||
override fun transmit(url: String, tx: ByteArray, headers: Array<String>): HttpResponse =
|
||||
try {
|
||||
httpInterface.transmit(url, tx, headers).also {
|
||||
lastHttpException = null
|
||||
lastHttpResponse = it
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
|
|
Loading…
Add table
Reference in a new issue