1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-22 12:32:02 +00:00

refactor(core): clear channel after decryption failed error

This commit is contained in:
M1nd3r 2024-07-25 13:13:53 +02:00
parent e6967e431e
commit 0b80fabb37

View File

@ -113,8 +113,7 @@ async def handle_received_message(
print(e)
except ThpDecryptionError as e:
await ctx.write_error(ThpErrorType.DECRYPTION_FAILED)
# TODO ctx.write_error, i.e., ctx.send_channelClosed_error
# ctx.clear
ctx.clear()
print(e)
if __debug__:
log.debug(__name__, "handle_received_message - end")