Skip to content

Commit

Permalink
fix already claimed
Browse files Browse the repository at this point in the history
  • Loading branch information
BitHighlander committed Feb 1, 2024
1 parent fceac82 commit 3d2e197
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ packageExtensions:
long: ^4.0.0
url: ^0.11.0
util: ^0.12.5
'@keepkey/proto-tx-builder@0.9.0':
dependencies:
long: ^4.0.0
protobufjs: ^7.1.2
'@pioneer-platform/pioneer-client@8.1.29':
dependencies:
js-yaml: ^3.13.1
Expand Down Expand Up @@ -94,10 +98,6 @@ packageExtensions:
'@ethersproject/contracts': ^5.7.0
'@shapeshiftoss/logger': ^1.1.3
lodash: 4.17.21
'@keepkey/proto-tx-builder@0.9.0':
dependencies:
long: ^4.0.0
protobufjs: ^7.1.2
'@shapeshiftoss/unchained-client@10.14.0':
dependencies:
'@ethersproject/abi': ^5.7.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export const initializeWallet = async (
if (webUsbWallet) return webUsbWallet
} catch (e) {
console.error('unable to pair webUsb device', e)
// @ts-ignore
if (e.message.indexOf('LIBUSB_ERROR_ACCESS') > -1) {
console.error('device already claimed!');
throw new Error("LIBUSB_ERROR_ACCESS: claimInterface: device already claimed! must close other applications using the device");
}
}
}
const hidDevice = await hidAdapter.getDevice().catch(() => undefined)
Expand Down

0 comments on commit 3d2e197

Please sign in to comment.