mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-25 01:18:54 +00:00
chore(core): close all workflows when channel is replaced
[no changelog]
This commit is contained in:
parent
f9aebcd9d1
commit
f0abe3b9d1
@ -121,6 +121,9 @@ class Channel:
|
|||||||
required_state=ChannelState.ENCRYPTED_TRANSPORT,
|
required_state=ChannelState.ENCRYPTED_TRANSPORT,
|
||||||
required_key=CHANNEL_HOST_STATIC_PUBKEY,
|
required_key=CHANNEL_HOST_STATIC_PUBKEY,
|
||||||
)
|
)
|
||||||
|
if was_any_replaced:
|
||||||
|
# In case a channel was replaced, close all running workflows
|
||||||
|
workflow.close_others()
|
||||||
log.debug(__name__, "Was any channel replaced? %s", str(was_any_replaced))
|
log.debug(__name__, "Was any channel replaced? %s", str(was_any_replaced))
|
||||||
|
|
||||||
def is_channel_to_replace(self) -> bool:
|
def is_channel_to_replace(self) -> bool:
|
||||||
|
Loading…
Reference in New Issue
Block a user