Skip to content

Commit 723a253

Browse files
committed
fix(transport): transferOut timeout must be inside try block
1 parent 3e03d0c commit 723a253

File tree

1 file changed

+1
-1
lines changed
  • packages/transport/src/api

1 file changed

+1
-1
lines changed

packages/transport/src/api/usb.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class UsbApi extends AbstractApi {
234234

235235
const timeout = setTimeout(() => {
236236
this.logger?.debug('usb: device.transfer out take suspiciously long. timing out.');
237-
device?.reset();
237+
device?.reset().catch(() => {});
238238
}, 1000);
239239

240240
try {

0 commit comments

Comments
 (0)