File tree 1 file changed +8
-4
lines changed
packages/connect/src/device
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -532,17 +532,21 @@ export class Device extends TypedEmitter<DeviceEvents> {
532
532
await this . acquire ( ) ;
533
533
}
534
534
535
+ const getFeaturesTimeout =
536
+ DataManager . getSettings ( 'env' ) === 'react-native'
537
+ ? GET_FEATURES_TIMEOUT_REACT_NATIVE
538
+ : GET_FEATURES_TIMEOUT ;
539
+
535
540
const { staticSessionId, deriveCardano } = this . getState ( ) || { } ;
536
541
if ( acquireNeeded || ! staticSessionId || ( ! deriveCardano && options . useCardanoDerivation ) ) {
537
542
// update features
538
543
try {
539
544
if ( fn ) {
540
545
await this . initialize ( ! ! options . useCardanoDerivation ) ;
541
546
} else {
542
- const getFeaturesTimeout =
543
- DataManager . getSettings ( 'env' ) === 'react-native'
544
- ? GET_FEATURES_TIMEOUT_REACT_NATIVE
545
- : GET_FEATURES_TIMEOUT ;
547
+ _log . debug ( 'sending cancel' ) ;
548
+ await cancelPrompt ( this , true ) . catch ( ( ) => { } ) ;
549
+ _log . debug ( 'sending cancel done' ) ;
546
550
547
551
let getFeaturesTimeoutId : ReturnType < typeof setTimeout > | undefined ;
548
552
You can’t perform that action at this time.
0 commit comments