Skip to content

Commit

Permalink
fix(transport): fix node bridge segfault when disconnected while butt…
Browse files Browse the repository at this point in the history
…on request displayed on device
  • Loading branch information
mroz22 committed Nov 11, 2024
1 parent 61e946e commit 460d358
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/transport/src/api/usb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ export class UsbApi extends AbstractApi {
if (device.opened) {
if (!this.debugLink) {
try {
// https://github.com/trezor/trezor-suite/issues/15336
await createTimeoutPromise(500);
// NOTE: `device.reset()` interrupts transfers for all interfaces (debugLink and normal)
await device.reset();
} catch (err) {
Expand Down

0 comments on commit 460d358

Please sign in to comment.