Thibaut Boustany
7 years ago
No known key found for this signature in database
GPG Key ID: 32475B11A2B13EEC
1 changed files with
3 additions and
1 deletions
-
src/helpers/deviceAccess.js
|
|
@ -40,7 +40,9 @@ export const withDevice: WithDevice = devicePath => job => { |
|
|
|
busy = true |
|
|
|
refreshBusyUIState() |
|
|
|
try { |
|
|
|
const t = await retry(() => TransportNodeHid.open(devicePath), { maxRetry: 1 }).catch(mapError).catch(mapError) |
|
|
|
const t = await retry(() => TransportNodeHid.open(devicePath), { maxRetry: 1 }).catch( |
|
|
|
mapError, |
|
|
|
) |
|
|
|
t.setDebugMode(logger.apdu) |
|
|
|
try { |
|
|
|
const res = await job(t).catch(mapError) |
|
|
|